diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-16 17:20:25 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-16 17:20:25 +1300 |
commit | fc979ccde3771526433e40401e938fda45f0e028 (patch) | |
tree | ff441795030536a6617dea88d9a09578e7e0406f | |
parent | Strip trailing blank lines (diff) | |
download | mgrep-master.tar.gz mgrep-master.zip |
-rwxr-xr-x | mgrep | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -87,9 +87,8 @@ done # patterns from it. If it doesn't exist, just continue on. if [[ -e $exclude ]] ; then while read -r exclusion ; do - if [[ $exclusion ]] ; then - find_args=("${find_args[@]}" '!' '-name' "$exclusion") - fi + [[ -n $exclusion ]] || continue + find_args=("${find_args[@]}" '!' '-name' "$exclusion") done < "$exclude" fi |