Commit 2ff6d547 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add '-eu' flags to grep-auto-exclude script

parent 032b0ea2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -7,6 +7,8 @@
#   ~/.shell/bin/grep [grep|fgrep|egrep] [OPTIONS]
#

set -eu

VCS_DIRS='.bzr .cvs .git .hg .svn'

type which >/dev/null 2>&1 || which() (
@@ -26,7 +28,7 @@ case "$1" in
	*) CMD=`which grep` ;;
esac

for dir in $VCS_DIRS $GREP_EXCLUDE_DIRS; do
for dir in $VCS_DIRS ${GREP_EXCLUDE_DIRS-}; do
	set -- --exclude-dir="$dir" "$@"
done