summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-06-15 17:00:41 -0400
committerDaniel Watkins <oddbloke@ubuntu.com>2020-06-15 17:00:41 -0400
commit7161fdb6cfc3780c33b039ab4f07e867b4442b1e (patch)
treeb69dcd3cd4696c2c807f447ba45a051a670d5a26
parent81da9da5b09e59d172bfb37434cad7a568e9b2be (diff)
downloadcloud-init-git-oddbloke-travis-test.tar.gz
-rw-r--r--.travis.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index fdfedb04..d3a92df6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -105,10 +105,10 @@ matrix:
# recompresses/stores the cache every build. If we only
# replaced the cached tarball if upgrades occurred, we
# could save an extra ~30s on most builds.)
- before_pkgs=$(sudo schroot -c source:xenial-amd64 -d / dpkg -l | sha256sum)
+ before_pkgs="$(sudo schroot -c source:xenial-amd64 -d / dpkg -l | sha256sum)"
sudo schroot -c source:xenial-amd64 -d / -- sh -c "apt-get update && apt-get -qqy upgrade"
after_pkgs=$(sudo schroot -c source:xenial-amd64 -d / dpkg -l | sha256sum)
- if [ $before_pkgs != $after_pkgs ]; then
+ if [ "$before_pkgs" != "$after_pkgs" ]; then
needs_caching=true
fi
else
@@ -119,7 +119,7 @@ matrix:
# Tar up the schroot (to preserve ownership/permissions) and
# move it into the cached dir; no need to compress it because
# Travis will do that anyway
- if [ $needs_caching = "true" ]; then
+ if [ "$needs_caching" = "true" ]; then
sudo tar --sparse --xattrs --xattrs-include=* -cf "$TRAVIS_BUILD_DIR/chroots/xenial-amd64.tar" -C /var/lib/schroot/chroots/xenial-amd64 .
fi
# Use sudo to get a new shell where we're in the sbuild group