updated light updater
This commit is contained in:
parent
2df55e876c
commit
b453b8a080
@ -24,7 +24,16 @@ if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if xterm -T "Sovran_SystemsOS_Light Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "PASSWORD=$(zenity --password --title="User Password") echo $PASSWORD | sudo -S nixos-rebuild switch ; then
|
xterm -T "Sovran_SystemsOS_Light Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "PASSWORD=$(zenity --password --title="User Password") if ! echo $PASSWORD | sudo -S nixos-rebuild switch ; then
|
||||||
|
|
||||||
|
zenity --error \
|
||||||
|
--width=400 \
|
||||||
|
--title="Sovran_SystemsOS_Light Updater" \
|
||||||
|
--text="Could not complete the Nix Flake update."
|
||||||
|
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
zenity --info \
|
zenity --info \
|
||||||
--ellipsize \
|
--ellipsize \
|
||||||
|
Loading…
Reference in New Issue
Block a user