diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-07-23 14:38:01 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-07-23 14:38:01 +0800 |
| commit | 80fe88409c8e8837d90a92f2cbcff94d345fb632 (patch) | |
| tree | 65b7659d5426e1f87a3458f923ca0c5e7546e097 /update.sh | |
| parent | 9b8128a9342500fa4dd43331bd2eb6c8b4ed9b07 (diff) | |
updated
Diffstat (limited to 'update.sh')
| -rwxr-xr-x | update.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ #!/usr/bin/bash +# check if db.lck exist(other instant exist) and deal with it if [ -f /var/lib/pacman/db.lck ]; then notify-send "db.lck exist, waiting 1 min until rm -f" sleep 60 @@ -9,5 +10,5 @@ if [ -f /var/lib/pacman/db.lck ]; then fi fi -sudo npm update -g & nix-env -u & brew update & blck=$! & yay -Sl > /tmp/yaySl & yay -Ss > /tmp/yaySs & yay --noconfirm --disable-download-timeout & wait "$blck" && brew upgrade || sudo touch /var/lock/updatefail.lock # notify-send -u critical "Auto-Updater" "Update Faild!" # pipx upgrade-all +sudo npm update -g & nix-env -u & brew update & blck=$! & yay -Sl > /tmp/yaySl & yay -Ss > /tmp/yaySs & yay --noconfirm --disable-download-timeout & wait "$blck" && brew upgrade || sudo /sbin/touch /tmp/lock/updatefail.lock # notify-send -u critical "Auto-Updater" "Update Faild!" # pipx upgrade-all #notify-send "Auto-Updater" "Update in progress, please don't poweroff the computer" && sudo npm update -g & nix-env -u & brew update & brew upgrade & yay -Sl > /tmp/yaySl & yay -Ss > /tmp/yaySs & yay -Syu --noconfirm --disable-download-timeout && notify-send -u low "Auto-Updater" "Update Successfully!" || notify-send -u critical "Auto-Updater" "Update Faild!" # pipx upgrade-all |
