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