From 07c751d92310359bac051a0c9b4494be33f7395f Mon Sep 17 00:00:00 2001 From: Chris Rendle-Short Date: Sun, 5 May 2019 21:33:56 +1000 Subject: Use /usr/bin/env to find bash instead of hard-coded path. --- extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } } -- cgit v1.2.3