summaryrefslogtreecommitdiff
path: root/auto-update.sh
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-05-17 17:06:35 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-05-17 17:06:35 +0800
commitd3962b826c02b66265bd2617d231f9c22ffc6445 (patch)
tree23cc3568f035c2e4fd6db14f5109272c6f256839 /auto-update.sh
parent5537795a64c4f35a0228db03c2f8df50ff7e82c8 (diff)
update
Diffstat (limited to 'auto-update.sh')
-rwxr-xr-xauto-update.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/auto-update.sh b/auto-update.sh
index f4afce1..d6f4b36 100755
--- a/auto-update.sh
+++ b/auto-update.sh
@@ -5,7 +5,8 @@ while true; do
if [[ "$(systemctl is-system-running)" == "running" ]]; then
if [[ "$(xprintidle)" -gt 600000 ]]; then # Changed from 600000 (10 minutes) to 3600000 (1 hour)
#sudo #exec sudo /usr/bin/reflector @/etc/xdg/reflector/reflector.conf &
- notify-send "Auto-Updater" "Update in progress, please don't poweroff the computer" && sudo npm update -g & nix-env -u & yay -Syu --noconfirm --disable-download-timeout && flatpak update -y && notify-send -u low "Auto-Updater" "Update Successfully!" && echo \#sleep 3600 || notify-send -u critical "Auto-Updater" "Update Faild!" # pipx upgrade-all
+ touch /home/system/updated-via-auto-update
+ notify-send "Auto-Updater" "Update in progress, please don't poweroff the computer" && sudo npm update -g & nix-env -u & brew update & yay -Sl > /tmp/yaySl & yay -Syu --noconfirm --disable-download-timeout && flatpak update -y && notify-send -u low "Auto-Updater" "Update Successfully!" && echo \#sleep 3600 || notify-send -u critical "Auto-Updater" "Update Faild!" # pipx upgrade-all
else
sleep 60
fi