refactored if fi to && || in wait function

This commit is contained in:
Kjistóf 2017-10-08 21:10:56 +02:00
parent 186be90a7a
commit 50f446b772

View File

@ -8,11 +8,9 @@ function simtyping()
function wait() function wait()
{ {
if [ "$PROMPT_TIMEOUT" == "-1" ]; then [ "$PROMPT_TIMEOUT" == "-1" ] &&
read -rs read -rs ||
else
read -rst "$PROMPT_TIMEOUT" read -rst "$PROMPT_TIMEOUT"
fi
} }
function type() function type()