From 3bf9872d1736d01c10de861148d3673f77f0410f Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Tue, 12 Dec 2023 14:59:36 -0800 Subject: [PATCH] updated light updater --- .../Update_Sovran_SystemsOS_Light.sh | 25 +++---------------- 1 file changed, 4 insertions(+), 21 deletions(-) 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 62dcbc9..cf9b26d 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 @@ -2,6 +2,7 @@ PASSWORD=$(zenity --password --title="User Password") +:' HOME () { if ! echo $PASSWORD | sudo -S flatpak update -y ; then @@ -24,28 +25,10 @@ if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then fi -xterm -T "Sovran_SystemsOS_Light Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "PASSWORD=$(zenity --password --title="User Password") - - Z1=$(zenity --error --width=400 --title="Sovran_SystemsOS_Light Updater" --text="Could not complete the NixOS update.") +' - Z2=$(zenity --info \ - --ellipsize \ - --no-wrap \ - --width=500 \ - --title="Sovran_SystemsOS_Light Updater" \ - --text="Yay complete! Please reboot when you are ready.") - - if ! echo $PASSWORD | sudo -S nixos-rebuild switch ; then - - $Z1 - - exit 1 - - else - - $Z2 - -fi" +HOME () { +xterm -T "Sovran_SystemsOS_Light Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "PASSWORD=$(zenity --password --title="User Password") Z1=$(zenity --error --width=400 --title="Sovran_SystemsOS_Light Updater" --text="Could not complete the NixOS update.") Z2=$(zenity --info --ellipsize --no-wrap --width=500 --title="Sovran_SystemsOS_Light Updater" --text="Yay complete! Please reboot when you are ready.") if ! echo $PASSWORD | sudo -S nixos-rebuild switch ; then $Z1 exit 1 else $Z2 fi" }