From f7f4825c6763154081dbcca0a4431860965e4727 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 16 Aug 2015 09:25:00 -0700 Subject: [PATCH] deal with case where file doesn't exist --- xwords4/android/scripts/mkvariant.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/android/scripts/mkvariant.sh b/xwords4/android/scripts/mkvariant.sh index 56ce68943..b781f6d6d 100755 --- a/xwords4/android/scripts/mkvariant.sh +++ b/xwords4/android/scripts/mkvariant.sh @@ -40,7 +40,7 @@ do_dir() { for FILE in $SRC_PATH/*; do if [ -d $FILE ]; then do_dir $SRC_PATH $DEST_PATH $(basename $FILE) - else + elif [ -e $FILE ]; then FILE=${FILE/$SRC_PATH/$DEST_PATH} if git ls-files $FILE --error-unmatch 2>/dev/null; then echo "skipping $FILE; it's under version control within this variant"