aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/pacupgrade
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-08-05 05:05:40 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-08-05 05:05:40 +0300
commitc157c9a139ddda9dc760af36fb8b2299bc32a051 (patch)
tree2a0ce200a07e8a2bc6fffdaab5db5ceb7bcadc07 /dotfiles/.local/bin/pacupgrade
parent4743810ba16ded2c3d60c8ae23710dfafae3a76c (diff)
downloadswayrice-c157c9a139ddda9dc760af36fb8b2299bc32a051.tar.gz
swayrice-c157c9a139ddda9dc760af36fb8b2299bc32a051.zip
Minor improvements and changes here and there
Diffstat (limited to 'dotfiles/.local/bin/pacupgrade')
-rwxr-xr-xdotfiles/.local/bin/pacupgrade7
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