From 9a7ceef09ea1fc8cbe17b324a9d1a2e71e50cb0a Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 13 Apr 2020 13:09:27 +0200 Subject: shellcheck: make top-level bash scripts warning-free And run shellcheck in test.bash. --- benchmark-reverse.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'benchmark-reverse.bash') diff --git a/benchmark-reverse.bash b/benchmark-reverse.bash index 75e0dda..be98fc1 100755 --- a/benchmark-reverse.bash +++ b/benchmark-reverse.bash @@ -30,10 +30,10 @@ gocryptfs -q -init -reverse -extpass="echo test" -scryptn=10 $PLAIN MNT=$(mktemp -d /tmp/linux-3.0.reverse.mnt.XXX) # Cleanup trap -trap "rm -f $PLAIN/.gocryptfs.reverse.conf ; fuse-unmount -z $MNT ; rmdir $MNT" EXIT +trap 'rm -f "$PLAIN/.gocryptfs.reverse.conf" ; fuse-unmount -z "$MNT" ; rmdir "$MNT"' EXIT # Mount -gocryptfs -q -reverse -extpass="echo test" $PLAIN $MNT +gocryptfs -q -reverse -extpass="echo test" "$PLAIN" "$MNT" # Execute command, discard all stdout output, print elapsed time # (to stderr, unfortunately). @@ -45,6 +45,6 @@ function etime { } echo -n "LS: " -etime ls -lR $MNT +etime ls -lR "$MNT" echo -n "CAT: " -etime find $MNT -type f -exec cat {} + +etime find "$MNT" -type f -exec cat {} + -- cgit v1.2.3