From 72aa7324baf09a05212b9af23cd6bf9d18087011 Mon Sep 17 00:00:00 2001 From: Chris Lasher Date: Mon, 11 Dec 2023 12:18:56 -0500 Subject: [PATCH] Fix the paths for homebrew. --- app/modules/battery.js | 2 +- battery.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/battery.js b/app/modules/battery.js index c98db2b..ce1a217 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' +const path_fix = 'PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin' const battery = `${ path_fix } battery` const shell_options = { shell: '/bin/bash', diff --git a/battery.sh b/battery.sh index 42815d6..443a78b 100755 --- a/battery.sh +++ b/battery.sh @@ -7,7 +7,7 @@ BATTERY_CLI_VERSION="v1.1.5" # Path fixes for unexpected environments -PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew +PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew/bin ## ############### ## Variables