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/reverse/linux-tarball-test.bash | |
parent | c505e73a13d8e2083b53c5c1af1f937b46665abd (diff) |
shell scripts: fix shellcheck warnings
Diffstat (limited to 'tests/reverse/linux-tarball-test.bash')
-rwxr-xr-x | tests/reverse/linux-tarball-test.bash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/reverse/linux-tarball-test.bash b/tests/reverse/linux-tarball-test.bash index 26bbb6c..4054c29 100755 --- a/tests/reverse/linux-tarball-test.bash +++ b/tests/reverse/linux-tarball-test.bash @@ -10,12 +10,12 @@ source ../fuse-unmount.bash # Setup dirs ../dl-linux-tarball.bash cd /tmp -WD=$(mktemp -d /tmp/$MYNAME.XXX) +WD=$(mktemp -d "/tmp/$MYNAME.XXX") # Cleanup trap trap "set +u; cd /; fuse-unmount -z $WD/c; fuse-unmount -z $WD/b; rm -rf $WD" EXIT -cd $WD +cd "$WD" mkdir a b c echo "Extracting tarball" tar -x -f /tmp/linux-3.0.tar.gz -C a @@ -30,4 +30,4 @@ gocryptfs -q -extpass="echo test" b c cd c echo "Checking md5 sums" set -o pipefail -md5sum -c $MD5 | pv -l -s 36782 -N "files checked" | (grep -v ": OK" || true) +md5sum -c "$MD5" | pv -l -s 36782 -N "files checked" | (grep -v ": OK" || true) |