Skip to content

Commit bfcd5b1

Browse files
🔥 single-line logging of missing visudo perms
1 parent cfd2e97 commit bfcd5b1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

battery.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Update management
55
## variables are used by this binary as well at the update script
66
## ###############
7-
BATTERY_CLI_VERSION="v1.1.4"
7+
BATTERY_CLI_VERSION="v1.1.5"
88

99
# Path fixes for unexpected environments
1010
PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew
@@ -130,8 +130,7 @@ function change_magsafe_led_color() {
130130
if sudo -n smc -k ACLC -r &>/dev/null; then
131131
log "💡 Setting magsafe color to $color"
132132
else
133-
log "🚨 Your version of battery is using an old visudo file"
134-
log "please run 'battery visudo' to fix this, until you do battery cannot change magsafe led colors"
133+
log "🚨 Your version of battery is using an old visudo file, please run 'battery visudo' to fix this, until you do battery cannot change magsafe led colors"
135134
return
136135
fi
137136

0 commit comments

Comments
 (0)