summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rendle-Short <chris@killred.net>2019-05-05 21:33:56 +1000
committerChris Rendle-Short <chris@killred.net>2019-05-05 21:33:56 +1000
commit07c751d92310359bac051a0c9b4494be33f7395f (patch)
tree5a6f08481bd8507fd90628c919dc90bf7398a9be
parentbfee73e25b7252d3e4b648cef7bb472c37b85625 (diff)
Use /usr/bin/env to find bash instead of hard-coded path.
-rw-r--r--extension.js2
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]);
}
}