more input changes

This commit is contained in:
ark-lamp-umbrella 2024-04-12 20:18:16 -07:00
parent ba49f2c9e7
commit 197992e691
Signed by: ark-lamp-umbrella
GPG Key ID: 15E48F7B97025652
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ else
set hash1 "$(cat temp/directorylisthashed.txt)"
set hash2 "$(cat temp/directorylisthashedprevious.txt)"
if [ "$hash1" != "$hash2" ]
read -sP "[INPUT] Root password: " rpass
set rpass "$(logprinti "root password" "p")"
if [ "$rpass" = "" ]
logprintn "WARN" "yellow" "empty root password"
exit 0
@ -37,7 +37,7 @@ else
echo "$rpass" | sudo -S nixos-rebuild switch
end
end
read -P "[INPUT] Git update Y/n: " gitpush
set gitpush "$(logprinti "update git (Y/n)" "c")"
if [ "$gitpush" = "" ]
set gitpush "y"
end

View File

@ -21,7 +21,7 @@ function logprinti
set message "$(logprint "INPT" "green" "$argv[1]: ")"
if [ "$argv[2]" = "c" ]
read -P "$message" input
else if [ "$argv[2]" = "p"]
else if [ "$argv[2]" = "p" ]
read -sP "$message" input
end
echo "$input"