[tor-commits] [chutney/master] Fix warnings.sh spacing
teor at torproject.org
teor at torproject.org
Fri Feb 24 00:35:01 UTC 2017
commit dd880b862f2f26449e6bde44858cf2815d59f6f7
Author: teor <teor2345 at gmail.com>
Date: Thu Feb 23 17:09:51 2017 +1100
Fix warnings.sh spacing
uniq -c prints counts with variable spacing. We shouldn't carry that through
to the output.
Closes #21531.
---
tools/warnings.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/warnings.sh b/tools/warnings.sh
index 29ed3e2..e330e84 100755
--- a/tools/warnings.sh
+++ b/tools/warnings.sh
@@ -15,7 +15,7 @@ fi
function show_warnings() {
echo "${GREEN}Node `basename $1`:${NC}"
sed -n 's/^.*\[warn\]//p' $1/info.log | sort | uniq -c | \
- sed -e 's/^\s*//' -e "s/\([0-9][0-9]*\) \(.*\)/${YELLOW}Warning:${NC}\2${YELLOW} Number: \1${NC}/"
+ sed -e 's/^\s*//' -e "s/ *\([0-9][0-9]*\) *\(.*\)/ ${YELLOW}Warning:${NC} \2${YELLOW} Number: \1${NC}/"
echo ""
}
More information about the tor-commits
mailing list