summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_archives
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-03-30 17:32:07 +0100
committerRaphaƫl Hertzog <hertzog@debian.org>2020-04-23 16:32:26 +0200
commitb3bba232ac6e1feff9e506506247aa20cd7f467c (patch)
treea4630f87da2fc641d8b3b56ec8fcb360dda395b0 /scripts/build/chroot_archives
parent6b7c8ed4bf15175299729355f04d60dcbac1aded (diff)
downloadvyos-live-build-b3bba232ac6e1feff9e506506247aa20cd7f467c.tar.gz
vyos-live-build-b3bba232ac6e1feff9e506506247aa20cd7f467c.zip
usage: take exit code as param
thus it can correctly indicate success/fail status instead of always indicating failure. when a user asks for usage with -u|--usage then we should exit in success mode rather than failure as when usage in printed in response to incorrect usage. Gbp-Dch: Short
Diffstat (limited to 'scripts/build/chroot_archives')
-rwxr-xr-xscripts/build/chroot_archives4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives
index 399d4d439..f36f79ccd 100755
--- a/scripts/build/chroot_archives
+++ b/scripts/build/chroot_archives
@@ -23,7 +23,7 @@ _ACTION="${2}"
shift 2
if ! In_list "${_PASS}" "binary" "chroot" "source"; then
- Usage
+ Usage 1
fi
# Processing arguments and configuration files
@@ -441,6 +441,6 @@ case "${_ACTION}" in
;;
*)
- Usage
+ Usage 1
;;
esac