summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-17 13:08:44 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-17 13:08:44 +0000
commit74540d9e0e097ffce9b56ffe4ac30caea76f7b76 (patch)
tree9419e6c6bca27d71212d477c2b1bba9d4a7a392b /scripts
parentacd7efd8bda7e9f76d8a5513eb398b9e5832ada2 (diff)
downloadmorph-74540d9e0e097ffce9b56ffe4ac30caea76f7b76.tar.gz
Fix check-silliness' use of awk length function
Posix took away using length without (). Reviewed-by: Richard Maw Reviewed-by: Daniel Silverstone
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
;;