now cmd executes commands until 'end' is entered

This commit is contained in:
Kjistóf 2017-10-08 21:02:04 +02:00
parent ca5054c21d
commit cbae5e29ff

View File

@ -36,7 +36,9 @@ function execute()
function cmd() function cmd()
{ {
prompt while : ; do
read command prompt
eval "${command}"; read command
[ "$command" != "end" ] && eval "${command}" || break
done
} }