updated the Sovran_SystemsOS and Sovran_SystemsOS_Light updater

This commit is contained in:
naturallaw77 2023-12-11 15:54:29 -08:00
parent a2ec54b879
commit 92bb62ef3a
2 changed files with 27 additions and 29 deletions

View File

@ -14,27 +14,25 @@ fi
} }
SPICE () { SPICE () {
xterm -T "Sovran_SystemsOS_Light Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure'" if ! xterm -T "Sovran_SystemsOS_Light Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure'" ; then
if [[ $? != 1 ]] ; then zenity --error \
--width=400 \
zenity --info \
--ellipsize \
--no-wrap \
--width=700 \
--title="Sovran_SystemsOS_Light Updater" \ --title="Sovran_SystemsOS_Light Updater" \
--text="Yay complete! Please reboot when you are ready." --text="Could not complete the update."
exit 1 exit 1
else else
zenity --error \ zenity --info \
--width=700 \ --ellipsize \
--no-wrap \
--width=500 \
--title="Sovran_SystemsOS_Light Updater" \ --title="Sovran_SystemsOS_Light Updater" \
--text="Could not complete the update." --text="Yay complete! Please reboot when you are ready."
exit 2 exit 1
fi fi
@ -46,7 +44,7 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
zenity --text-info \ zenity --text-info \
--width=1000 \ --width=1000 \
--height=700 \ --height=750 \
--title="Sovran_SystemsOS_Light Updater" --title="Sovran_SystemsOS_Light Updater"
if [[ $? -eq 1 ]]; then if [[ $? -eq 1 ]]; then
@ -57,7 +55,7 @@ else
FLATPAK FLATPAK
SPICE | zenity --progress --no-cancel --auto-close --width=650 --pulsate --text="Updating now. In rare cases, it could take up to 3 hours. Please Be Patient..." --title="Sovran_SystemsOS_Light Updater" SPICE | zenity --progress --no-cancel --auto-close --width=660 --pulsate --text="Updating now. In rare cases, it could take up to 3 hours. Please Be Patient..." --title="Sovran_SystemsOS_Light Updater"
fi fi