summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-silliness4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check-silliness b/scripts/check-silliness
index f956e647..662c0b9f 100755
--- a/scripts/check-silliness
+++ b/scripts/check-silliness
@@ -32,10 +32,10 @@ for x; do
# IMPLEMENTS lines of them
*.yarn) ;;
*)
- if awk 'length > 79' "$x" | grep . > /dev/null
+ if awk 'length($0) > 79' "$x" | grep . > /dev/null
then
echo "ERROR: $x has lines longer than 79 chars" 1>&2
- awk 'length > 79 { print NR, $0 }' "$x" 1>&2
+ awk 'length($0) > 79 { print NR, $0 }' "$x" 1>&2
errors=1
fi
;;