From 430c48640c6b5523f8da65561f62d25b6a7efbb2 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Mon, 30 Mar 2020 15:09:41 +0100 Subject: 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 --- scripts/build/chroot_cache | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/build/chroot_cache') 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}")" -- cgit v1.2.3