summaryrefslogtreecommitdiff
path: root/scripts/build/bootstrap_cache
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-05-03 00:58:18 +0100
committerLyndon Brown <jnqnfe@gmail.com>2020-05-03 01:31:47 +0100
commit43b4f9cdf62972bff5cff45f895305c391a895f2 (patch)
treef9c7628c66999bad84efed0de9183821e5013e84 /scripts/build/bootstrap_cache
parent372a8fd91a9ec22c22250e4a0322432305b69a9f (diff)
downloadvyos-live-build-43b4f9cdf62972bff5cff45f895305c391a895f2.tar.gz
vyos-live-build-43b4f9cdf62972bff5cff45f895305c391a895f2.zip
adjust action arg consumption order
did not properly consider all usage cases properly in deciding placement. this captured `--usage` in `$PROGRAM --usage` as the action for instance. Gbp-Dch: Ignore
Diffstat (limited to 'scripts/build/bootstrap_cache')
-rwxr-xr-xscripts/build/bootstrap_cache6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build/bootstrap_cache b/scripts/build/bootstrap_cache
index 1c3c7ff25..cc1ac755e 100755
--- a/scripts/build/bootstrap_cache
+++ b/scripts/build/bootstrap_cache
@@ -18,12 +18,12 @@ set -e
DESCRIPTION="Cache bootstrap stage"
USAGE="${PROGRAM} {restore|save} [--force]"
-_ACTION="${1}"
-shift
-
# Processing arguments and configuration files
Init_config_data "${@}"
+_ACTION="${1}"
+shift
+
# Check architecture
Check_crossarchitectures