Quote this to prevent word splitting

https://github.com/koalaman/shellcheck/wiki/SC2046
This commit is contained in:
Eric Nemchik 2018-02-28 10:37:57 -06:00
commit 55b9f6c399

View file

@ -215,7 +215,7 @@ tempdir=$(mktemp -d)
file="$tempdir/ombi_$version.tar.gz"
wget --quiet --show-progress -O $file "https://ci.appveyor.com/api/buildjobs/$jobId/artifacts/linux.tar.gz"
.log 6 "Version $version downloaded...checking file size..."
if [ $(wc -c < $file) != $size ]; then
if [ "$(wc -c < $file)" != $size ]; then
.log 3 "Downloaded file size does not match expected file size...bailing!"
exit 2
fi