From 71bceaa60bef055e462e2ca235b3bfddf4ff3332 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 8 Aug 2019 18:13:13 +0100 Subject: [PATCH] Bugfix: Create temporary directory before downloading phpDocumentor --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 4dd44d3..4704da0 100755 --- a/build.sh +++ b/build.sh @@ -94,11 +94,14 @@ function task_docs { task_begin "Building PHP Module API Docs"; if [ ! -f "./build/_tmp/phpdoc" ]; then subtask_begin "Downloading PHPDoc"; + # Create the temporary directory if it doesn't exist yet + [ -d "./build/_tmp" ] || mkdir -p "./build/_tmp/"; + curl -sSL https://phpdoc.org/phpDocumentor.phar -o ./build/_tmp/phpdoc subtask_end $?; fi - php ./build/_tmp/phpdoc run \ + php ./buihttps://phpdoc.org/ld/_tmp/phpdoc run \ --directory . \ --target docs/ModuleApi\ --cache-folder build/_tmp/ModuleApiCache \