From 4f1792691b09ea90fba1801b5489c99bc1cd04bb Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Tue, 12 Dec 2023 14:24:10 -0800 Subject: [PATCH] updated both updaters with new error notification --- .../Update_Sovran_SystemsOS_Light.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 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 46bc545..1460edd 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 @@ -1,8 +1,8 @@ #!/usr/bin/env bash -PASSWORD=$(zenity --password --title="Your User Password") +PASSWORD=$(zenity --password --title="User Password") -HOME () { +FLATPAK () { if ! echo $PASSWORD | sudo -S flatpak update -y ; then zenity --error \ @@ -13,6 +13,9 @@ if ! echo $PASSWORD | sudo -S flatpak update -y ; then fi +} + +HOME () { if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then zenity --error \ @@ -59,9 +62,9 @@ exit 1 else -zenity --progress --no-cancel --auto-close --width=660 --pulsate --text="Updating now. In rare cases, it could take up to 3 hours. Please be patient..." --title="Sovran_SystemsOS_Light Updater" +FLATPAK | zenity --progress --no-cancel --auto-close --width=660 --pulsate --text="Updating Flatpaks now." -xterm -T "Sovran_SystemsOS_Light Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "HOME" +HOME | zenity --progress --no-cancel --auto-close --width=660 --pulsate --text="Updating Sovran_SystemsOS now. In rare cases, it could take up to 3 hours. Please be patient..." --title="Sovran_SystemsOS_Light Updater" fi