updated both updaters with new error notification

This commit is contained in:
naturallaw77 2023-12-12 14:27:58 -08:00
parent 4f1792691b
commit 061cf6b578

View File

@ -16,6 +16,17 @@ fi
} }
HOME () { 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 if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then
zenity --error \ zenity --error \