aboutsummaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-11-11 19:18:49 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2018-11-15 19:37:07 +0200
commitd9f7cb3f6202291d38d611165f70e0c1c33b3e92 (patch)
tree18ea2b5a3e2de34a978bd3543ebf857b1ccf43ab /scripts/test
parent92f71b8e88c58b38c027a291066337f896ad344b (diff)
downloadtor-d9f7cb3f6202291d38d611165f70e0c1c33b3e92.tar.gz
tor-d9f7cb3f6202291d38d611165f70e0c1c33b3e92.zip
Fix shellcheck issues in cov-diff - SC2231, SC2006 and SC2086
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/cov-diff6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/test/cov-diff b/scripts/test/cov-diff
index 6179dff63e..f3ca856888 100755
--- a/scripts/test/cov-diff
+++ b/scripts/test/cov-diff
@@ -7,9 +7,9 @@
DIRA="$1"
DIRB="$2"
-for B in $DIRB/*; do
- A=$DIRA/`basename $B`
- if [ -f $A ]; then
+for B in "$DIRB"/*; do
+ A=$DIRA/$(basename "$B")
+ if [ -f "$A" ]; then
perl -pe 's/^\s*\!*\d+(\*?):/ 1$1:/; s/^([^:]+:)[\d\s]+:/$1/; s/^ *-:(Runs|Programs):.*//;' "$A" > "$A.tmp"
else
cat /dev/null > "$A.tmp"