From 690f248e27252b56ea93f02fe446e35fec890c22 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 24 Aug 2015 07:35:00 -0700 Subject: [PATCH] ignore case where no files exist (so that /* doesn't expand) --- xwords4/android/scripts/mkvariant.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xwords4/android/scripts/mkvariant.sh b/xwords4/android/scripts/mkvariant.sh index 56ce68943..9333862fd 100755 --- a/xwords4/android/scripts/mkvariant.sh +++ b/xwords4/android/scripts/mkvariant.sh @@ -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