ignore case where no files exist (so that /* doesn't expand)

This commit is contained in:
Eric House 2015-08-24 07:35:00 -07:00
parent 6d6c345f94
commit 690f248e27

View file

@ -40,6 +40,8 @@ do_dir() {
for FILE in $SRC_PATH/*; do
if [ -d $FILE ]; then
do_dir $SRC_PATH $DEST_PATH $(basename $FILE)
elif [ ! -e $FILE ]; then
:
else
FILE=${FILE/$SRC_PATH/$DEST_PATH}
if git ls-files $FILE --error-unmatch 2>/dev/null; then