diff --git a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh index a40138a..f319d8d 100755 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -17,6 +17,15 @@ fi SPICE () { if ! xterm -T "Sovran_SystemsOS 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 +zenity --error \ +--width=400 \ +--title="Sovran_SystemsOS Updater" \ +--text="Could not complete the update." + +exit 1 + +else + zenity --info \ --ellipsize \ --no-wrap \ @@ -26,15 +35,6 @@ zenity --info \ exit 1 -else - -zenity --error \ ---width=400 \ ---title="Sovran_SystemsOS Updater" \ ---text="Could not complete the update." - -exit 2 - fi }