diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-11-07 17:47:35 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-11-07 17:47:35 +0100 |
commit | cf898757fae79c967855e5a15c9f8fef6e167857 (patch) | |
tree | 3449e393679005d351cf9ecf704e75c06e65bbbe /xlint | |
parent | e7007d226530721b8e6da89398a82862bc9b573f (diff) | |
download | xtools-cf898757fae79c967855e5a15c9f8fef6e167857.tar.gz xtools-cf898757fae79c967855e5a15c9f8fef6e167857.tar.xz xtools-cf898757fae79c967855e5a15c9f8fef6e167857.zip |
xlint: fix return code.
Diffstat (limited to 'xlint')
-rwxr-xr-x | xlint | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xlint b/xlint index 314dff1..a3eef1a 100755 --- a/xlint +++ b/xlint @@ -4,8 +4,7 @@ scan() { local rx="$1" msg="$2" grep -P -Hn -e "$rx" "$template" | - sed "s/^\([^:]*:[^:]*:\)\(.*\)/\1 $msg/" | - grep . && ret=1 + sed "s/^\([^:]*:[^:]*:\)\(.*\)/\1 $msg/" } once() { @@ -122,6 +121,6 @@ for template; do scan 'distfiles=.*ftp\.mozilla\.org' 'use $MOZILLA_SITE' scan 'distfiles=.*ftp\.gnu\.org/(pub/)?gnu' 'use $GNU_SITE' scan 'distfiles=.*freedesktop\.org/software' 'use $FREEDESKTOP_SITE' - } | sort -t: -n -k2 + } | sort -t: -n -k2 | grep . && ret=1 done exit $ret |