From 43b4f9cdf62972bff5cff45f895305c391a895f2 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sun, 3 May 2020 00:58:18 +0100 Subject: 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 --- scripts/build/chroot_archives | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/build/chroot_archives') diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives index c6d4c1b84..7f13a4a7d 100755 --- a/scripts/build/chroot_archives +++ b/scripts/build/chroot_archives @@ -18,6 +18,9 @@ set -e DESCRIPTION="Manage /etc/apt/sources.list" USAGE="${PROGRAM} {source|binary|chroot} {install|remove} [--force]" +# Processing arguments and configuration files +Init_config_data "${@}" + _PASS="${1}" _ACTION="${2}" shift 2 @@ -26,9 +29,6 @@ if ! In_list "${_PASS}" "binary" "chroot" "source"; then Usage --fail fi -# Processing arguments and configuration files -Init_config_data "${@}" - # Requiring stage file Require_stagefiles config bootstrap -- cgit v1.2.3