diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-04-07 17:38:19 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-04-07 17:38:19 +0200 |
commit | 8c66621b6f67b87ddebcd027a57f351052ec1529 (patch) | |
tree | 1d90e93a624330507fd8e1c79d7641b2242cd7d2 | |
parent | ebbb5e2ea625348bc7c3ed59931234419c8d7b4e (diff) | |
download | jenkins.debian.net-8c66621b6f67b87ddebcd027a57f351052ec1529.tar.xz |
fixup 79c4c28f, use quotes
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | update_jdn.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update_jdn.sh b/update_jdn.sh index aa0216cc..91702213 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -487,7 +487,7 @@ if [ -f /etc/debian_version ] ; then $UP2DATE || ( sudo cp --preserve=mode,timestamps -r hosts/$HOSTNAME/etc/apt/sources.list /etc/apt ; sudo apt-get update ) $UP2DATE || sudo apt-get install $DEBS $MASTERDEBS # dont (re-)install pbuilder if it's on hold - if [ $(dpkg-query -W -f='${db:Status-Abbrev}\n' pbuilder) != hi ] ; then + if [ "$(dpkg-query -W -f='${db:Status-Abbrev}\n' pbuilder)" != "hi" ] ; then case $HOSTNAME in codethink*) $UP2DATE || sudo apt-get install -t jessie-backports pbuilder ;; @@ -497,7 +497,7 @@ if [ -f /etc/debian_version ] ; then esac fi # remove unattended-upgrades if it's installed - if [ $(dpkg-query -W -f='${db:Status-Abbrev}\n' unattended-upgrades 2>/dev/null || true) = ii ] ; then + if [ "$(dpkg-query -W -f='${db:Status-Abbrev}\n' unattended-upgrades 2>/dev/null || true)" = "ii" ] ; then sudo apt-get -y purge unattended-upgrades fi # we need mock from bpo to build current fedora |