From 16186724e30675a8c4fd556aa5dd1b6bcff5f8fd Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Mon, 4 Dec 2023 09:45:07 -0800 Subject: [PATCH] updated updater fix --- .../Update_Sovran_SystemsOS.sh | 21 +++++++++++-------- 1 file changed, 12 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 736b401..044ba94 100755 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -15,15 +15,18 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr 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 - zenity --info \ - --width=400 \ - --title="Sovran_SystemsOS Updater" \ - --text="Could Not Update Sovran_SystemsOS -- Exiting" - - exit 1 - - fi + 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' + + if [[ $? -ne 0 ]]; then + + zenity --info \ + --width=400 \ + --title="Sovran_SystemsOS Updater" \ + --text="Could Not Update Sovran_SystemsOS -- Exiting" + + exit 1 + + fi" zenity --info \ --ellipsize \