fix fish export script

This commit is contained in:
ark-lamp-umbrella 2024-04-21 22:15:41 -07:00
parent 485fe28340
commit 20b1aa306f
Signed by: ark-lamp-umbrella
GPG Key ID: 15E48F7B97025652
1 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ else
if [ "$hash1" != "$hash2" ]
set rpass "$(logprinti "root password" "p")"
if [ "$rpass" = "" ]
logprintn "WARN" "yellow" "empty root password"
logprintn "EXIT" "red" "empty root password"
exit 0
end
echo "$rpass" | sudo -S cp -r "nixos/" "/etc/"
@ -34,7 +34,8 @@ else
end
set rebuild "$(string lower $rebuild)"
if [ "$rebuild" = "y" ]
echo "$rpass" | sudo -S nixos-rebuild switch
sudo fish -c "sudo nixos-rebuild switch"
logprintn "INFO" "blue" "nixos-rebuild completed"
end
end
set gitpush "$(logprinti "update git (Y/n)" "c")"