diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-10-06 23:13:26 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-10-06 23:13:26 +0300 |
commit | e610e63c500b373832e3b4526c4d2ca2bce3b7b9 (patch) | |
tree | 938197b19a9bba9cdee8c91867cd5297d423dc2c /dotfiles/.local/bin/pacsync | |
parent | 5e760be5d93d94c35b4b591209a1f92dc040aeef (diff) | |
parent | 92e9edf359ac07ed6e86e0737cfade1d77b2c1d5 (diff) | |
download | swayrice-e610e63c500b373832e3b4526c4d2ca2bce3b7b9.tar.gz swayrice-e610e63c500b373832e3b4526c4d2ca2bce3b7b9.zip |
Merge branch 'master' of github.com:Yaroslav-95/swayrice into master
Diffstat (limited to 'dotfiles/.local/bin/pacsync')
-rwxr-xr-x | dotfiles/.local/bin/pacsync | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dotfiles/.local/bin/pacsync b/dotfiles/.local/bin/pacsync index 9e745c8..2e5d60f 100755 --- a/dotfiles/.local/bin/pacsync +++ b/dotfiles/.local/bin/pacsync @@ -15,12 +15,12 @@ wget -q --tries=5 --timeout=20 --spider 1.1.1.1 > /dev/null || exit # Source the needed env variables so that it can function properly from cron . ~/.cache/sessionenv -notify-send " System upgrade" "Syncing repositories and downloading packages..." +notify-send " System upgrade" "Syncing repositories and downloading packages..." touch ~/.cache/pacsynclive killall -41 waybar -sudo pacman -Syuw --noconfirm || notify-send " System upgrade" \ +sudo pacman -Syuw --noconfirm || notify-send " System upgrade" \ "Error downloading updates. Check your internet connection or that you have the required permissions" rm -f ~/.cache/pacsynclive @@ -29,5 +29,5 @@ killall -41 waybar upno=$(pacman -Qu | wc -l) if [ $upno -lt 0 ]; then - notify-send " System upgrade" "Repository sync finished. $upno updates are available" + notify-send " System upgrade" "Repository sync finished. $upno updates are available" fi |