From 061cf6b578e9b1f6f4c78affab9235db0c2083dd Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Tue, 12 Dec 2023 14:27:58 -0800 Subject: [PATCH] updated both updaters with new error notification --- .../Update_Sovran_SystemsOS_Light.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 1460edd..6105a81 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 @@ -16,6 +16,17 @@ fi } HOME () { +if ! echo $PASSWORD | sudo -S nixos-rebuild switch --impure ; then + + zenity --error \ + --width=400 \ + --title="Sovran_SystemsOS_Light Updater" \ + --text="Could not complete the NixOS update." + + exit 1 + +if + if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then zenity --error \