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
1 changed files with 5 additions and 3 deletions

View File

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