tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit a8df39e9552bd679b35513fa4a1c98507e870082
parent 26539ec3ae01a33f0ab4ce59fa83355ebdf32470
Author: Nick Mathewson <nickm@torproject.org>
Date:   Mon, 19 Nov 2018 08:47:03 -0500

Merge remote-tracking branch 'tor-github/pr/519'

Diffstat:
Achanges/ticket28009 | 3+++
Mscripts/test/cov-diff | 6+++---
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/changes/ticket28009 b/changes/ticket28009 @@ -0,0 +1,3 @@ + o Code simplification and refactoring: + - Fix shellcheck warnings in cov-diff script. Resolves issue + 28009. diff --git 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"