diff --git a/.ci/build.sh b/.ci/build.sh index f3f8de39c..99b29f2ae 100644 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -172,6 +172,9 @@ then # Clean local tree of gitignored files. git clean -dfX + # Recreate output directory if it was removed by git clean. + [ ! -d "$cwd" ] && mkdir -p "$cwd" + # Save current HEAD commit to VERSION. git log --stat -1 > VERSION || rm -f VERSION