From: Michael Adam Date: Thu, 15 Jan 2015 23:14:15 +0000 (+0100) Subject: lxc-download: make --list more useful. X-Git-Tag: lxc-1.0.8~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f774d9e109559d3d513d81e20f866e92b01781c;p=thirdparty%2Flxc.git lxc-download: make --list more useful. Make it possible to use --list without having to specify --dist, --release, and --arch, which does not make a lot of sense. Signed-off-by: Michael Adam Acked-by: Stéphane Graber --- diff --git a/templates/lxc-download.in b/templates/lxc-download.in index f6f50d8a9..f67fdbc95 100644 --- a/templates/lxc-download.in +++ b/templates/lxc-download.in @@ -266,8 +266,10 @@ fi # Check that we have all variables we need if [ -z "$LXC_NAME" ] || [ -z "$LXC_PATH" ] || [ -z "$LXC_ROOTFS" ]; then - echo "ERROR: Not running through LXC." 1>&2 - exit 1 + if [ "$DOWNLOAD_LIST_IMAGES" != "true" ]; then + echo "ERROR: Not running through LXC." 1>&2 + exit 1 + fi fi USERNS=$(in_userns)