From a2ec54b879e1d795db858c2188083b34234cfd0d Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Mon, 11 Dec 2023 15:50:30 -0800 Subject: [PATCH] updated the Sovran_SystemsOS updater --- .../Update_Sovran_SystemsOS.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 }