summaryrefslogtreecommitdiff
path: root/auto-update.sh
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-05-28 14:48:54 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-05-28 14:48:54 +0800
commitc086caa833f0a51a2897a45284c592af1013f064 (patch)
treeca754a23a2573f9b6a6dcbe126c3fe50563c052d /auto-update.sh
parent924dfef1fa40ea4ad7f82d9d11d903c1fbf0fdc6 (diff)
update
Diffstat (limited to 'auto-update.sh')
-rwxr-xr-xauto-update.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/auto-update.sh b/auto-update.sh
deleted file mode 100755
index a2b6581..0000000
--- a/auto-update.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env bash
-
-
-while true; do
- if [[ "$(systemctl is-system-running)" == "running" || "$(systemctl is-system-running)" == "degraded" ]]; 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 &
- 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
- fi
-done