updated both updaters with new error notification
This commit is contained in:
parent
8208fd7aa5
commit
4f1792691b
@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
if ! echo $PASSWORD | sudo -S flatpak update -y ; then
|
||||||
|
|
||||||
zenity --error \
|
zenity --error \
|
||||||
@ -13,6 +13,9 @@ if ! echo $PASSWORD | sudo -S flatpak update -y ; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
HOME () {
|
||||||
if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then
|
if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then
|
||||||
|
|
||||||
zenity --error \
|
zenity --error \
|
||||||
@ -59,9 +62,9 @@ exit 1
|
|||||||
|
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user