summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_archives
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-03-09 23:48:23 +0000
committerLuca Boccassi <bluca@debian.org>2020-03-10 12:49:36 +0000
commitee2bbe45782f52d115115b8cf6198afaeb03be9e (patch)
tree9280407f52562f14525b5703c96996e9c3fabe87 /scripts/build/chroot_archives
parentcf2a9b951cbd4e6bc35ea0d389f39c0ec36db639 (diff)
downloadvyos-live-build-ee2bbe45782f52d115115b8cf6198afaeb03be9e.tar.gz
vyos-live-build-ee2bbe45782f52d115115b8cf6198afaeb03be9e.zip
archives: simplification
as suggested by Raphaƫl Gbp-Dch: Short
Diffstat (limited to 'scripts/build/chroot_archives')
-rwxr-xr-xscripts/build/chroot_archives3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives
index 8daa1c19b..8d47a1417 100755
--- a/scripts/build/chroot_archives
+++ b/scripts/build/chroot_archives
@@ -20,8 +20,7 @@ USAGE="${PROGRAM} {source|binary|chroot} {install|remove} [--force]"
_PASS="${1}"
shift
-if [ "${_PASS}" != "binary" ] && [ "${_PASS}" != "chroot" ] && [ "${_PASS}" != "source" ]
-then
+if ! In_List "${_PASS}" "binary" "chroot" "source"; then
Usage
fi