Browse Source

Fix warnings.sh spacing

uniq -c prints counts with variable spacing. We shouldn't carry that through
to the output.

Closes #21531.
teor 7 years ago
parent
commit
dd880b862f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/warnings.sh

+ 1 - 1
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 ""
 }