diff --git a/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh b/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh index 8330c8e..2fe050a 100755 --- a/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh +++ b/Sovran_SystemsOS_Light_Updater/Updater Source Files/Update_Sovran_SystemsOS_Light.sh @@ -24,23 +24,20 @@ if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then fi -xterm -T "Sovran_SystemsOS_Light Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "PASSWORD=$(zenity --password --title="User Password") if ! echo $PASSWORD | sudo -S nixos-rebuild switch ; then - - zenity --error \ - --width=400 \ +xterm -T "Sovran_SystemsOS_Light Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "PASSWORD=$(zenity --password --title="User Password") Z1=$(zenity --error --width=400 --title="Sovran_SystemsOS_Light Updater" --text="Could not complete the Nix Flake update.") Z2=$(zenity --info \ + --ellipsize \ + --no-wrap \ + --width=500 \ --title="Sovran_SystemsOS_Light Updater" \ - --text="Could not complete the Nix Flake update." + --text="Yay complete! Please reboot when you are ready.") if ! echo $PASSWORD | sudo -S nixos-rebuild switch ; then + + $Z1 exit 1 else - zenity --info \ - --ellipsize \ - --no-wrap \ - --width=500 \ - --title="Sovran_SystemsOS_Light Updater" \ - --text="Yay complete! Please reboot when you are ready." + $Z2 fi"