diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-04-17 13:08:44 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-04-17 13:08:44 +0000 |
commit | 74540d9e0e097ffce9b56ffe4ac30caea76f7b76 (patch) | |
tree | 9419e6c6bca27d71212d477c2b1bba9d4a7a392b /scripts/check-silliness | |
parent | acd7efd8bda7e9f76d8a5513eb398b9e5832ada2 (diff) | |
download | morph-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/check-silliness')
-rwxr-xr-x | scripts/check-silliness | 4 |
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 ;; |