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 \