more input changes
This commit is contained in:
parent
fddebef42b
commit
ba49f2c9e7
|
@ -43,7 +43,7 @@ else
|
|||
end
|
||||
set gitpush "$(string lower $gitpush)"
|
||||
if [ "$gitpush" = "y" ]
|
||||
read -P "[INPUT] Commit message: " cmessage
|
||||
set cmessage "$(logprinti "commit message" "c")"
|
||||
logprintn "INFO" "blue" "adding changes to git repo"
|
||||
git add .
|
||||
logprintn "INFO" "blue" "creating commit with message \"$cmessage\""
|
||||
|
|
|
@ -21,6 +21,8 @@ function logprinti
|
|||
set message "$(logprint "INPT" "green" "$argv[1]: ")"
|
||||
if [ "$argv[2]" = "c" ]
|
||||
read -P "$message" input
|
||||
else if [ "$argv[2]" = "p"]
|
||||
read -sP "$message" input
|
||||
end
|
||||
echo "$input"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue