]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Exit 0 when there's no error 4462/head
authorJip-Hop <2871973+Jip-Hop@users.noreply.github.com>
Tue, 9 Jul 2024 10:33:36 +0000 (12:33 +0200)
committerJip-Hop <2871973+Jip-Hop@users.noreply.github.com>
Tue, 16 Jul 2024 19:16:56 +0000 (21:16 +0200)
Signed-off-by: Jip de Beer <2871973+Jip-Hop@users.noreply.github.com>
templates/lxc-download.in

index 328eb002e97b81e9f3d4d0bd2de4198c63ef0748..bc12e3757cd53e1c95e18bdd1deaf67497cd4dc1 100755 (executable)
@@ -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