From 03e4d3e078d27680eab915f773cd166718a08a8a Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Mon, 4 Dec 2023 08:28:54 -0800 Subject: [PATCH] updated updater fix --- .../Update_Sovran_SystemsOS.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 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 d8540e1..e915252 100755 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -15,7 +15,13 @@ 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 + 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 \ --width=400 \ --title="Sovran_SystemsOS Updater" \ @@ -25,12 +31,19 @@ curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovr fi + + + + +fi + + zenity --info \ --ellipsize \ --no-wrap \ --width=400 \ --title="Sovran_SystemsOS Updater" \ - --text="Yay Complete! Please Reboot When You Are Ready." + --text="Yay Complete! Please Reboot When You Are Ready.") fi exit 0 \ No newline at end of file