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-satisfydepends-gdebi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pbuilder-satisfydepends-gdebi') diff --git a/pbuilder-satisfydepends-gdebi b/pbuilder-satisfydepends-gdebi index bdf812d..3bd3cf7 100644 --- a/pbuilder-satisfydepends-gdebi +++ b/pbuilder-satisfydepends-gdebi @@ -30,12 +30,12 @@ function checkbuilddep_internal () { NO_RECOMMENDS="" if VERSION=$(/usr/bin/gdebi --version 2>/dev/null); then - if dpkg --compare-versions $VERSION ge 0.3.9; then + if dpkg --compare-versions "$VERSION" ge 0.3.9; then NO_RECOMMENDS="-o APT::Install-Recommends=false" fi fi - INSTALL=$(/usr/bin/gdebi --quiet --root $CHROOT --apt-line $NO_RECOMMENDS $DEBIAN_CONTROL) + INSTALL=$(/usr/bin/gdebi --quiet --root "$CHROOT" --apt-line "$NO_RECOMMENDS" "$DEBIAN_CONTROL") $CHROOTEXEC /usr/bin/apt-get install -y "${APTGETOPT[@]}" $INSTALL } -- cgit v1.2.3