From 186be90a7a7c988e24860cad0445a118cbb98894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 8 Oct 2017 21:05:21 +0200 Subject: [PATCH] readded option to cmd to read a single command --- demo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/demo.sh b/demo.sh index ecf6add..9e9794a 100644 --- a/demo.sh +++ b/demo.sh @@ -40,5 +40,6 @@ function cmd() prompt read command [ "$command" != "end" ] && eval "${command}" || break + [ "$1" ] && break done }