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.1.0.rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=308f4f391a0a0f2bd29a44a7b2be1e43abc61912;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 6fc5d2ea4..2d6b1cb60 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)