improved handling of automatic enter presses of execute

This commit is contained in:
Kjistóf 2017-10-08 19:49:23 +02:00
parent d41d2b2d6c
commit 72042074cd

View File

@ -13,7 +13,6 @@ function wait()
else else
read -rst "$PROMPT_TIMEOUT" read -rst "$PROMPT_TIMEOUT"
fi fi
printf "\n"
} }
function type() function type()
@ -31,6 +30,7 @@ function execute()
{ {
prompt prompt
type "$@" && wait type "$@" && wait
printf "\n"
eval "$@" eval "$@"
} }