Fixed mkdir warning when running iosbuild.sh multiple times

This commit is contained in:
Sam Lantinga 2020-05-27 09:57:51 -07:00
parent 03a7abf80c
commit 2aec184e36
1 changed files with 8 additions and 6 deletions

View File

@ -11,7 +11,9 @@ fi
SRC_DIR=$(cd `dirname $0`/..; pwd)
if [ "$PWD" = "$SRC_DIR" ]; then
PREFIX=$SRC_DIR/ios-build
if [ ! -d "$PREFIX" ]; then
mkdir $PREFIX
fi
else
PREFIX=$PWD
fi