more input changes
This commit is contained in:
parent
ba49f2c9e7
commit
197992e691
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue