Merge pull request #211 from gotgenes/fix-homebrew-paths

Fix the paths for homebrew.
This commit is contained in:
Mentor Palokaj
2024-01-17 11:35:10 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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',

View File

@@ -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