summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-03-18 16:56:57 +0000
committerLuca Boccassi <bluca@debian.org>2020-03-20 11:43:01 +0000
commit7c4de2f20d2ed284f28578f081dd66e45a0e547a (patch)
treed1c71154364e1bf1bc10ea8780e0cdcb8417d937
parent94a3e184c25b9baf817a0f97fc74416e6d6304e6 (diff)
downloadvyos-live-build-7c4de2f20d2ed284f28578f081dd66e45a0e547a.tar.gz
vyos-live-build-7c4de2f20d2ed284f28578f081dd66e45a0e547a.zip
archives: clarify var
Gbp-Dch: Ignore
-rwxr-xr-xscripts/build/chroot_archives5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives
index d43c56706..4bec09384 100755
--- a/scripts/build/chroot_archives
+++ b/scripts/build/chroot_archives
@@ -19,7 +19,8 @@ DESCRIPTION="Manage /etc/apt/sources.list"
USAGE="${PROGRAM} {source|binary|chroot} {install|remove} [--force]"
_PASS="${1}"
-shift
+_ACTION="${2}"
+shift 2
if ! In_list "${_PASS}" "binary" "chroot" "source"; then
Usage
@@ -31,7 +32,7 @@ Init_config_data "${@}"
# Requiring stage file
Require_stagefiles config bootstrap
-case "${1}" in
+case "${_ACTION}" in
install)
Echo_message "Configuring file /etc/apt/sources.list"