correct sudo validation

This commit is contained in:
Marta 2025-11-13 00:24:08 +01:00
parent 17b12cbb8e
commit 68389c10e8
Signed by: marta
GPG key ID: 61B6652511C9A28C

2
nixie
View file

@ -112,7 +112,7 @@ RESTORE () {
pushd /etc/nixos > /dev/null
echo -e "${IPurple}Running nixie. ${Purple}You might be asked to input the root password.${NC}"
sudo echo -n
sudo --validate
if [ "$1" == "pull" ]; then
echo -e "${IPurple}Pulling from origin...${NC}"
sudo git pull