diff options
-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 |