templates: avoid endless loop

Closes #2512. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent f5c8f252
...@@ -280,7 +280,7 @@ eval set -- "$options" ...@@ -280,7 +280,7 @@ eval set -- "$options"
while true while true
do do
case "$1" in case "$1" in
-h|--help) usage exit 1;; -h|--help) usage && exit 1;;
-n|--name) name=$2; shift 2;; -n|--name) name=$2; shift 2;;
-p|--path) path=$2; shift 2;; -p|--path) path=$2; shift 2;;
--rootfs) rootfs=$2; shift 2;; --rootfs) rootfs=$2; shift 2;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment