diff --git a/ci/build.sh b/ci/build.sh index b1f0935..167ecad 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -21,6 +21,12 @@ open -g $editorpath --args \ -logFile $editorlogpath \ -projectPath "$(pwd)/game" +# wait for editor log to exist +while [ ! -f $editorlog ] +do + sleep 1 +done + # use a safe directory that is automatically removed by the shell when the script exists work="$(mktemp -d)" || exit $? trap "rm -rf '$work'" exit