mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-26 07:02:59 +00:00
Create the cache directory if it doesn't exist
This commit is contained in:
parent
2d94af6913
commit
32d09dd5ad
1 changed files with 2 additions and 0 deletions
2
build
2
build
|
@ -76,6 +76,8 @@ task_download-composer() {
|
||||||
if [ -f "${cache_dir}/composer" ]; then
|
if [ -f "${cache_dir}/composer" ]; then
|
||||||
return 0;
|
return 0;
|
||||||
fi
|
fi
|
||||||
|
[ ! -d "${cache_dir}" ] || mkdir "${cache_dir}";
|
||||||
|
|
||||||
|
|
||||||
task_begin "Downloading composer";
|
task_begin "Downloading composer";
|
||||||
curl "https://getcomposer.org/composer.phar" -o "${cache_dir}/composer"; exit_code=$?;
|
curl "https://getcomposer.org/composer.phar" -o "${cache_dir}/composer"; exit_code=$?;
|
||||||
|
|
Loading…
Reference in a new issue