updated updater fix

This commit is contained in:
naturallaw77 2023-12-04 08:28:54 -08:00
parent af1803c7bc
commit 03e4d3e078

View File

@ -15,7 +15,13 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
else else
if ! xterm -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "ssh root@localhost 'flatpak update -y && cd /etc/nixos && nix flake update && nixos-rebuild switch --impure'"; then if ! zenity --progress --pulsate; then
exit 1
else
xterm -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c $(if ! ssh root@localhost 'flatpak update -y && cd /etc/nixos && nix flake update && nixos-rebuild switch --impure'; then
zenity --info \ zenity --info \
--width=400 \ --width=400 \
--title="Sovran_SystemsOS Updater" \ --title="Sovran_SystemsOS Updater" \
@ -25,12 +31,19 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr
fi fi
fi
zenity --info \ zenity --info \
--ellipsize \ --ellipsize \
--no-wrap \ --no-wrap \
--width=400 \ --width=400 \
--title="Sovran_SystemsOS Updater" \ --title="Sovran_SystemsOS Updater" \
--text="Yay Complete! Please Reboot When You Are Ready." --text="Yay Complete! Please Reboot When You Are Ready.")
fi fi
exit 0 exit 0