diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-03-30 15:09:41 +0100 |
---|---|---|
committer | Raphaƫl Hertzog <hertzog@debian.org> | 2020-04-23 15:53:12 +0200 |
commit | 430c48640c6b5523f8da65561f62d25b6a7efbb2 (patch) | |
tree | 210b83c6a7e235e6743993fbba44d86b370a6239 /scripts/build/chroot_cache | |
parent | f4c8a28a21e7edd50f01dec7450fefad4da07714 (diff) | |
download | vyos-live-build-430c48640c6b5523f8da65561f62d25b6a7efbb2.tar.gz vyos-live-build-430c48640c6b5523f8da65561f62d25b6a7efbb2.zip |
move script param capture to before arg processing
makes them consistent with other similar script-specific param handling;
saves the arg processing from dealing with it.
Gbp-Dch: Short
Diffstat (limited to 'scripts/build/chroot_cache')
-rwxr-xr-x | scripts/build/chroot_cache | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build/chroot_cache b/scripts/build/chroot_cache index 242858729..85db25eb3 100755 --- a/scripts/build/chroot_cache +++ b/scripts/build/chroot_cache @@ -18,6 +18,9 @@ set -e DESCRIPTION="Cache chroot stage" USAGE="${PROGRAM} [--force]" +_ACTION="${1}" +shift + # Processing arguments and configuration files Init_config_data "${@}" @@ -26,9 +29,6 @@ then exit 0 fi -_ACTION="${1}" -shift - # Set non-default stage file name # Setting to default name with appended action name STAGE_FILE="$(Stagefile_name "${_ACTION}")" |