]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
templates: avoid endless loop 2513/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 6 Aug 2018 14:43:35 +0000 (16:43 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 6 Aug 2018 14:43:35 +0000 (16:43 +0200)
Closes #2512.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
templates/lxc-busybox.in

index c283b00cbd8a904a7ba045c8792722de4a0c312c..7243b36ef88bc42bc995228048c5078e29d5c790 100644 (file)
@@ -280,7 +280,7 @@ eval set -- "$options"
 while true
 do
   case "$1" in
-    -h|--help)    usage exit 1;;
+    -h|--help)    usage && exit 1;;
     -n|--name)    name=$2; shift 2;;
     -p|--path)    path=$2; shift 2;;
     --rootfs)     rootfs=$2; shift 2;;