]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-fedora: Show usage when no name is passed
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 2 Oct 2013 17:11:24 +0000 (13:11 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 2 Oct 2013 17:11:24 +0000 (13:11 -0400)
Reported-by: Anatoly Techtonik
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-fedora.in

index 2f807a50980752ee9be560d53eb9b4879d12d2e6..1386f23f47034d8ede967eab63271ca3734f4fa9 100644 (file)
@@ -456,6 +456,11 @@ do
     esac
 done
 
+if [ -z "$name" ]; then
+    usage $(basename $0)
+    exit 1
+fi
+
 if [ ! -z "$clean" -a -z "$path" ]; then
     clean || exit 1
     exit 0