Create the cache directory if it doesn't exist

This commit is contained in:
Starbeamrainbowlabs 2019-03-30 12:01:08 +00:00
parent 2d94af6913
commit 32d09dd5ad
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

2
build
View file

@ -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=$?;