diff options
Diffstat (limited to 'dotfiles/.local/bin/pacupgrade')
-rwxr-xr-x | dotfiles/.local/bin/pacupgrade | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dotfiles/.local/bin/pacupgrade b/dotfiles/.local/bin/pacupgrade index aa00575..564bb5b 100755 --- a/dotfiles/.local/bin/pacupgrade +++ b/dotfiles/.local/bin/pacupgrade @@ -11,7 +11,12 @@ fi touch ~/.cache/pacupdatelive killall -41 waybar -sudo pacman -Syu +if [ "$1" = "-a" ]; then + yay -Syu +else + sudo pacman -Syu +fi + rm -f ~/.cache/pacupdatelive killall -41 waybar |