aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmgrep5
1 files changed, 2 insertions, 3 deletions
diff --git a/mgrep b/mgrep
index d57f9b5..aa1196e 100755
--- a/mgrep
+++ b/mgrep
@@ -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