From b453b8a08061c90a1c88a97b8762026d3b4df582 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Tue, 12 Dec 2023 14:50:05 -0800 Subject: [PATCH] updated light updater --- .../Update_Sovran_SystemsOS_Light.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 ea347c3..8330c8e 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,7 +24,16 @@ if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then fi -if xterm -T "Sovran_SystemsOS_Light Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "PASSWORD=$(zenity --password --title="User Password") echo $PASSWORD | sudo -S nixos-rebuild switch ; then +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 \ + --title="Sovran_SystemsOS_Light Updater" \ + --text="Could not complete the Nix Flake update." + + exit 1 + + else zenity --info \ --ellipsize \