mirror of
https://github.com/actuallymentor/battery.git
synced 2026-03-07 18:52:03 +00:00
Address the PR comments from base47
This commit is contained in:
@@ -670,9 +670,9 @@ fi
|
||||
# Update helper for Terminal users
|
||||
if [[ "$action" == "update" ]]; then
|
||||
|
||||
# Temporarily support the 'silent' setting for backward compatibility with older UI versions.
|
||||
# The older GUI versions 1_3_2 and below can not run silent passwordless update and
|
||||
# will complain with alert. Just exit with success and let them update themselves.
|
||||
if [[ "$setting" == "silent" ]]; then
|
||||
sudo -n $battery_binary update_silent
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
2
setup.sh
2
setup.sh
@@ -95,7 +95,7 @@ sudo chmod 755 "$(dirname "$launch_agent_plist")"
|
||||
sudo chown -f $calling_user "$launch_agent_plist"
|
||||
|
||||
echo "[ 8 ] Setup visudo configuration"
|
||||
sudo $binfolder/battery visudo $calling_user
|
||||
sudo $binfolder/battery visudo
|
||||
sudo chown -R $calling_user $configfolder
|
||||
|
||||
# Remove tempfiles
|
||||
|
||||
Reference in New Issue
Block a user