diff --git a/demo.sh b/demo.sh index 17dda84..f67ff0c 100644 --- a/demo.sh +++ b/demo.sh @@ -17,13 +17,10 @@ function wait() } function type() -{ - printf "$*\n" | simtyping - wait -} +{ printf "$*\n" | simtyping; } function execute() -{ type "$@" && eval "$@"; } +{ type "$@" && wait && eval "$@"; } function cmd() { read command && eval "${command}"; }