From c63f7e9f64ee394b3311edb7f36f56fd786d145a Mon Sep 17 00:00:00 2001 From: a1346054 Date: Tue, 31 Aug 2021 17:01:47 +0000 Subject: shell scripts: fix shellcheck warnings --- benchmark-reverse.bash | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'benchmark-reverse.bash') diff --git a/benchmark-reverse.bash b/benchmark-reverse.bash index be98fc1..fad6bfe 100755 --- a/benchmark-reverse.bash +++ b/benchmark-reverse.bash @@ -14,18 +14,18 @@ PLAIN=linux-3.0 SIZE=0 if [[ -d $PLAIN ]]; then - SIZE=$(du -s --apparent-size $PLAIN | cut -f1) + SIZE=$(du -s --apparent-size "$PLAIN" | cut -f1) fi if [[ $SIZE -ne 412334 ]] ; then echo "Extracting linux-3.0.tar.gz" - rm -Rf $PLAIN + rm -Rf "$PLAIN" tar xf linux-3.0.tar.gz fi -rm -f $PLAIN/.gocryptfs.reverse.conf -gocryptfs -q -init -reverse -extpass="echo test" -scryptn=10 $PLAIN +rm -f "$PLAIN/.gocryptfs.reverse.conf" +gocryptfs -q -init -reverse -extpass="echo test" -scryptn=10 "$PLAIN" MNT=$(mktemp -d /tmp/linux-3.0.reverse.mnt.XXX) @@ -37,7 +37,7 @@ gocryptfs -q -reverse -extpass="echo test" "$PLAIN" "$MNT" # Execute command, discard all stdout output, print elapsed time # (to stderr, unfortunately). -function etime { +etime() { # Make the bash builtin "time" print out only the elapse wall clock # seconds TIMEFORMAT=%R -- cgit v1.2.3