summaryrefslogtreecommitdiff
path: root/tests/dl-linux-tarball.bash
diff options
context:
space:
mode:
authora13460542021-08-31 17:01:47 +0000
committerrfjakob2021-09-01 10:22:01 +0200
commitc63f7e9f64ee394b3311edb7f36f56fd786d145a (patch)
tree84dec7ad0b4759532f622174c008e3aa645c5a29 /tests/dl-linux-tarball.bash
parentc505e73a13d8e2083b53c5c1af1f937b46665abd (diff)
shell scripts: fix shellcheck warnings
Diffstat (limited to 'tests/dl-linux-tarball.bash')
-rwxr-xr-xtests/dl-linux-tarball.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/dl-linux-tarball.bash b/tests/dl-linux-tarball.bash
index fa27e37..dfff492 100755
--- a/tests/dl-linux-tarball.bash
+++ b/tests/dl-linux-tarball.bash
@@ -10,18 +10,18 @@ SIZE_WANT=96675825
SIZE_ACTUAL=0
if [[ -e $TGZ ]]; then
if [[ $OSTYPE == linux* ]] ; then
- SIZE_ACTUAL=$(stat -c %s $TGZ)
+ SIZE_ACTUAL=$(stat -c %s "$TGZ")
else
# Mac OS X
- SIZE_ACTUAL=$(stat -f %z $TGZ)
+ SIZE_ACTUAL=$(stat -f %z "$TGZ")
fi
fi
if [[ $SIZE_ACTUAL -ne $SIZE_WANT ]]; then
echo "Downloading linux-3.0.tar.gz"
if command -v wget > /dev/null ; then
- wget -nv --show-progress -c -O $TGZ $URL
+ wget -nv --show-progress -c -O "$TGZ" "$URL"
else
- curl -o $TGZ $URL
+ curl -o "$TGZ" "$URL"
fi
fi