diff options
author | a1346054 | 2021-08-31 17:01:47 +0000 |
---|---|---|
committer | rfjakob | 2021-09-01 10:22:01 +0200 |
commit | c63f7e9f64ee394b3311edb7f36f56fd786d145a (patch) | |
tree | 84dec7ad0b4759532f622174c008e3aa645c5a29 /tests/dl-linux-tarball.bash | |
parent | c505e73a13d8e2083b53c5c1af1f937b46665abd (diff) |
shell scripts: fix shellcheck warnings
Diffstat (limited to 'tests/dl-linux-tarball.bash')
-rwxr-xr-x | tests/dl-linux-tarball.bash | 8 |
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 |