diff options
author | bjarosze <bjarosze@users.noreply.github.com> | 2019-05-13 15:51:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 15:51:03 +0200 |
commit | 0028a475ae8ac958a5d3d55affb319ff31052eec (patch) | |
tree | 5a6f08481bd8507fd90628c919dc90bf7398a9be | |
parent | bfee73e25b7252d3e4b648cef7bb472c37b85625 (diff) | |
parent | 07c751d92310359bac051a0c9b4494be33f7395f (diff) |
Merge pull request #5 from lightbulbjim/portable-bash
Use /usr/bin/env to find bash instead of hard-coded path.
-rw-r--r-- | extension.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extension.js b/extension.js index 718c92d..0a9b9d2 100644 --- a/extension.js +++ b/extension.js @@ -76,7 +76,7 @@ class BluetoothDevice { _call_bluetoothctl(command) { let btctl_command = `echo -e "${command}\\n" | bluetoothctl`; - Util.spawn(['/bin/bash', '-c', btctl_command]); + Util.spawn(['/usr/bin/env', 'bash', '-c', btctl_command]); } } |