From b08064c800fe8d944cf19e0239ec3e62e7889b1a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 16 Aug 2018 10:02:23 +0200 Subject: [PATCH] setup-all-dchroots: We use extraargs as a global variable, write it in caps --- modules/schroot/files/setup-all-dchroots | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/schroot/files/setup-all-dchroots b/modules/schroot/files/setup-all-dchroots index 2f5d710db..76280816b 100755 --- a/modules/schroot/files/setup-all-dchroots +++ b/modules/schroot/files/setup-all-dchroots @@ -49,13 +49,13 @@ do_one() { case "$MODE" in buildd) mkdir -p /srv/buildd/unpack - if ! $SILENT setup-dchroot $extraargs -f -a "$a" -D -d '/srv/buildd/unpack' -K "$s" + if ! $SILENT setup-dchroot $EXTRAARGS -f -a "$a" -D -d '/srv/buildd/unpack' -K "$s" then return 1 fi ;; porterbox) - if ! $SILENT setup-dchroot $extraargs -f -a "$a" "$s" + if ! $SILENT setup-dchroot $EXTRAARGS -f -a "$a" "$s" then return 1 fi @@ -78,12 +78,12 @@ OPTIONS: EOF } -extraargs="" +EXTRAARGS="" while getopts "cu" OPTION do case $OPTION in c) - extraargs="$extraargs -c" + EXTRAARGS="$EXTRAARGS -c" ;; h) usage -- 2.20.1