update updater script

This commit is contained in:
naturallaw77 2024-03-13 20:52:49 -07:00
parent fb497df56c
commit 7e5b0146ea

View File

@ -16,19 +16,7 @@ fi
SPICE () { SPICE () {
if ! ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure &> /home/free/Documents/Updater_App_Logs/'$time_stamp'_Updater_Log.txt' ; then if ! ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure &> /home/free/Documents/Updater_App_Logs/'$time_stamp'_Updater_Log.txt | xterm -T "Sovran_SystemsOS_Light Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black' ; then
zenity --error \
--width=400 \
--title="Sovran_SystemsOS Updater" \
--text="Could not complete the Sovran_SystemsOS update."
exit 1
else
if ! ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure &> /home/free/Documents/Updater_App_Logs/'$time_stamp'_Updater_Log.txt' ; then
zenity --error \ zenity --error \
--width=400 \ --width=400 \
@ -48,8 +36,6 @@ else
fi fi
fi
} }