diff --git a/app/modules/battery.js b/app/modules/battery.js index ce1a217..a03dcf8 100644 --- a/app/modules/battery.js +++ b/app/modules/battery.js @@ -4,7 +4,7 @@ const { exec } = require( 'node:child_process' ) const { log, alert, wait, confirm } = require( './helpers' ) const { get_force_discharge_setting } = require( './settings' ) const { USER } = process.env -const path_fix = 'PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin' +const path_fix = 'PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew' const battery = `${ path_fix } battery` const shell_options = { shell: '/bin/bash', diff --git a/battery.sh b/battery.sh index 4be764d..e4bdea6 100755 --- a/battery.sh +++ b/battery.sh @@ -4,10 +4,10 @@ ## Update management ## variables are used by this binary as well at the update script ## ############### -BATTERY_CLI_VERSION="v1.1.5" +BATTERY_CLI_VERSION="v1.1.6" # Path fixes for unexpected environments -PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin +PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew ## ############### ## Variables