aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-updatebuildenv
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-09-18 15:54:40 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-09-18 15:54:40 +0000
commit65d723234bf5dcd99f083ab4d5087b75ded2cfa6 (patch)
treee05f2dfd925495b2790fda398fbf603699fb5bde /pbuilder-updatebuildenv
parent86f8423f481d8e9cddcfd8da808eee600f96675a (diff)
downloadpbuilder-65d723234bf5dcd99f083ab4d5087b75ded2cfa6.tar
pbuilder-65d723234bf5dcd99f083ab4d5087b75ded2cfa6.tar.gz
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 <hpfn@ig.com.br> for the initial patch-set
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-xpbuilder-updatebuildenv4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index e673592..13dd043 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -41,7 +41,7 @@ log "I: Refreshing the base.tgz "
log "I: upgrading packages"
$CHROOTEXEC /usr/bin/apt-get -q update
-case "`readlink -e "$PBUILDERSATISFYDEPENDSCMD"`" in
+case "$(readlink -e "$PBUILDERSATISFYDEPENDSCMD")" in
*-aptitude)
EXTRAPACKAGES="$EXTRAPACKAGES aptitude"
;;
@@ -84,7 +84,7 @@ if [ "${AUTOCLEANAPTCACHE}" = "yes" -a -n "$APTCACHE" ]; then
$CHROOTEXEC /usr/bin/apt-get autoclean || true
find "$APTCACHE/" -maxdepth 1 -name \*.deb | \
while read A; do
- if [ ! -f "$BUILDPLACE/var/cache/apt/archives/"$(basename "$A") -a \
+ if [ ! -f "$BUILDPLACE/var/cache/apt/archives/$(basename "$A")" -a \
-f "$A" ]; then
log "I: obsolete cache content "$(basename "$A")" removed"
rm -f "$A" || true