Skip to content

Commit

Permalink
Use sudo only for sync action
Browse files Browse the repository at this point in the history
Fixes regression with utilities like byobu's built in updates_available script
  • Loading branch information
HikariKnight authored Oct 13, 2021
1 parent b2affc0 commit 7827735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ if [ $1 == "sync" ]
then
sudo /usr/bin/$APT update && sudo /usr/bin/$APT dist-upgrade ${@:2}
else
sudo /usr/bin/$APT $@
/usr/bin/$APT $@
fi

0 comments on commit 7827735

Please sign in to comment.