Compatibility with Mac OS X
Default wc command in Mac OS X does not have a '-L' option
This commit is contained in:
parent
ac4e46eff9
commit
ab5de4e769
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ check_file() {
|
|||
name=$1
|
||||
tmp=$2
|
||||
|
||||
if [ `wc -L $tmp | awk '{ print $1 }'` -gt 80 ]; then
|
||||
if [ `awk ' { if ( length > x ) { x = length } } END { print x }' $tmp` -gt 80 ]; then
|
||||
echo "File \"$name\" has lines with more than 80 columns."
|
||||
bad=1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue