From 65d723234bf5dcd99f083ab4d5087b75ded2cfa6 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 18 Sep 2015 15:54:40 +0000 Subject: fix a whole bunch of warning from shellcheck There are still quite some, this is a first chunk based on a given patch applied where i felt confident enough. Thanks: Herbert Parentes Fortes Neto for the initial patch-set --- pbuilder-createbuildenv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pbuilder-createbuildenv') diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv index 808ef1b..17ce87d 100755 --- a/pbuilder-createbuildenv +++ b/pbuilder-createbuildenv @@ -69,13 +69,13 @@ fi # DEBOOTSTRAPOPTS, it will override the --include=apt one and apt might not be # installed if ! ( "${DEBOOTSTRAP}" \ - ${ARCHITECTURE:+--arch=$ARCHITECTURE} \ + "${ARCHITECTURE:+--arch=$ARCHITECTURE}" \ --include=apt \ "${DEBOOTSTRAPOPTS[@]}" \ "$DISTRIBUTION" \ "$BUILDPLACE" \ "$MIRRORSITE" \ - $DEBOOTSTRAPSCRIPT ) ; then + "$DEBOOTSTRAPSCRIPT" ) ; then log "E: $DEBOOTSTRAP failed" exit 1 fi @@ -97,7 +97,7 @@ mountproc $TRAP umountproc_cleanbuildplace_trap exit sighup $CHROOTEXEC /usr/bin/apt-get -q update -case "`readlink -e "$PBUILDERSATISFYDEPENDSCMD"`" in +case "$(readlink -e "$PBUILDERSATISFYDEPENDSCMD")" in *-aptitude) EXTRAPACKAGES="$EXTRAPACKAGES aptitude" ;; -- cgit v1.2.3