From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:33:36 +0000 (+0200) Subject: Exit 0 when there's no error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b24d2d45b3875b013131b480e61c93b6fb8ea70c;p=thirdparty%2Flxc.git Exit 0 when there's no error Signed-off-by: Jip de Beer <2871973+Jip-Hop@users.noreply.github.com> --- diff --git a/templates/lxc-download.in b/templates/lxc-download.in index 328eb002e..bc12e3757 100755 --- a/templates/lxc-download.in +++ b/templates/lxc-download.in @@ -147,7 +147,7 @@ eval set -- "$options" while :; do case "$1" in - -h|--help) usage && exit 1;; + -h|--help) usage && exit 0;; -l|--list) DOWNLOAD_LIST_IMAGES="true"; shift 1;; -d|--dist) DOWNLOAD_DIST="$2"; shift 2;; -r|--release) DOWNLOAD_RELEASE="$2"; shift 2;; @@ -247,7 +247,7 @@ if [ "${DOWNLOAD_LIST_IMAGES}" = "true" ] || [ "${DOWNLOAD_INTERACTIVE}" = "true echo "---" if [ "${DOWNLOAD_LIST_IMAGES}" = "true" ]; then - exit 1 + exit 0 fi # Interactive mode