[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [chutney/master] Fix warnings.sh spacing



commit dd880b862f2f26449e6bde44858cf2815d59f6f7
Author: teor <teor2345@xxxxxxxxx>
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 ""
 }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits