FILELIST=".filelist"
LIST="$DOCS/$FILELIST"
DOC_PATTERN=".*\.(txt|doc|docx|rtf|pdf|sxc|csv|odt|odf|ods|xls|xlsx|ppt|epub|mobi|djvu|lit)"
-FIND_OPTS="-not -path '*.git*' -regextype posix-egrep -iregex"
+FIND_OPTS="-regextype posix-egrep -iregex"
ARG="$1"
EXTRA_ARG="$2"
DATE="`date +%s`"
fi
# Refresh
- cd $DOCS && find . $FIND_OPTS "$DOC_PATTERN" > $LIST
+ cd $DOCS && find . -not -path '*.git*' $FIND_OPTS "$DOC_PATTERN" > $LIST
# Stage
git add $LIST