updated light updater
This commit is contained in:
parent
610f93aa01
commit
05ba7e15e6
@ -2,7 +2,7 @@
|
||||
|
||||
PASSWORD=$(zenity --password --title="User Password")
|
||||
|
||||
FLATPAK () {
|
||||
HOME () {
|
||||
if ! echo $PASSWORD | sudo -S flatpak update -y ; then
|
||||
|
||||
zenity --error \
|
||||
@ -13,20 +13,6 @@ if ! echo $PASSWORD | sudo -S flatpak update -y ; then
|
||||
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
HOME () {
|
||||
if ! echo $PASSWORD | sudo -S timeout nixos-rebuild switch --impure ; then
|
||||
|
||||
zenity --error \
|
||||
--width=400 \
|
||||
--title="Sovran_SystemsOS_Light Updater" \
|
||||
--text="Could not complete the NixOS update."
|
||||
|
||||
exit 1
|
||||
|
||||
fi
|
||||
|
||||
if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then
|
||||
|
||||
zenity --error \
|
||||
@ -73,8 +59,6 @@ exit 1
|
||||
|
||||
else
|
||||
|
||||
FLATPAK | zenity --progress --no-cancel --auto-close --width=660 --pulsate --text="Updating Flatpaks now."
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user