Address the PR comments from base47

This commit is contained in:
base47
2026-02-15 20:42:16 +01:00
parent 2e17e17971
commit acb0eac349
2 changed files with 3 additions and 3 deletions

View File

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

View File

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