updated updater script

This commit is contained in:
naturallaw77 2024-03-30 10:08:37 -07:00
parent c457151d5c
commit 25cdd7a931

View File

@ -15,6 +15,7 @@ fi
} }
SPICE-FLAKE () { SPICE-FLAKE () {
time_stamp=$(date +%Y-%m-%d-%T) time_stamp=$(date +%Y-%m-%d-%T)
@ -25,6 +26,7 @@ ssh root@localhost "cd /etc/nixos && nix flake update 2>&1 | tee /home/free/Docu
} }
TACO-FLAKE () { TACO-FLAKE () {
pushd /home/free/Documents/Updater_App_Logs pushd /home/free/Documents/Updater_App_Logs
@ -46,6 +48,30 @@ popd
} }
PANCAKE-FLAKE () {
pushd /home/free/Documents/Updater_App_Logs
file=$(ls -Art | tail -n 1)
if ! grep -w "updating" $file ; then
zenity --info \
--ellipsize \
--no-wrap \
--width=700 \
--title="Sovran_SystemsOS_Updater" \
--text="There are no updates at this time. Your Sovran Pro is up to date!"
exit 1
fi
popd
}
SPICE () { SPICE () {
time_stamp=$(date +%Y-%m-%d-%T) time_stamp=$(date +%Y-%m-%d-%T)
@ -106,6 +132,8 @@ else
TACO-FLAKE TACO-FLAKE
PANCAKE-FLAKE
SPICE | zenity --progress --no-cancel --auto-close --width=1050 --pulsate --text="Updating entire system now. In rare cases, it could take up to 3 hours. Go have some herbal tea and relax while the update is in progress." --title="Sovran_SystemsOS_Updater" SPICE | zenity --progress --no-cancel --auto-close --width=1050 --pulsate --text="Updating entire system now. In rare cases, it could take up to 3 hours. Go have some herbal tea and relax while the update is in progress." --title="Sovran_SystemsOS_Updater"
TACO TACO