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
1 changed files with 2 additions and 4 deletions

View File

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