From b24d2d45b3875b013131b480e61c93b6fb8ea70c Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Tue, 9 Jul 2024 12:33:36 +0200 Subject: [PATCH] Exit 0 when there's no error Signed-off-by: Jip de Beer <2871973+Jip-Hop@users.noreply.github.com> --- templates/lxc-download.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2