commit fe3fbb54115a20defe87f7066e3d53c02b0a46ad parent 893215f461ec67b9baded116b7359a2563ef4c19 Author: Kyle Milz <kyle@0x30.net> Date: Sun, 4 Dec 2016 15:25:27 -0700 src/check: simplify and correct comments Diffstat:
M | src/check.sh | | | 10 | ++++------ |
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/check.sh b/src/check.sh @@ -24,7 +24,7 @@ while [ $# -ne 0 ]; do case "$1" in -o) - # Redirect standard output to argument of -o. + # Redirect stdout to argument of -o. exec 1<&-; exec 1<>"$2"; shift; shift;; --) shift; break;; @@ -37,12 +37,12 @@ if [ -z $@ ]; then set -- "." fi -# If stdin is a tty. +# If stdout is a tty. if [ -t 1 ]; then - echo "Checking $@" + echo Checking "$@" fi -awk_script=' +find $@ -name citrun.log -print0 | xargs -0 awk ' $0~/Found source file/ { summary[0] += 1 } $0~/Link detected/ { summary[1] += 1 } $0~/warning:/ { summary[2] += 1 } @@ -106,5 +106,3 @@ END { } } ' - -find $@ -name citrun.log -print0 | xargs -0 awk "$awk_script"