updated light updater

This commit is contained in:
naturallaw77 2023-12-12 14:59:36 -08:00
parent 481a591773
commit 3bf9872d17

View File

@ -2,6 +2,7 @@
PASSWORD=$(zenity --password --title="User Password") PASSWORD=$(zenity --password --title="User Password")
:'
HOME () { HOME () {
if ! echo $PASSWORD | sudo -S flatpak update -y ; then 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 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.") 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"
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"
} }