mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 05:23:03 +07:00
Make sure global composer.json directory exists
This commit is contained in:
parent
c470f034d0
commit
8f96f50dcd
@ -171,6 +171,7 @@ configure_composer() {
|
|||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
if ! [ -e "$composer_json" ]; then
|
if ! [ -e "$composer_json" ]; then
|
||||||
|
sudo mkdir -p "$(dirname "$composer_json")"
|
||||||
echo '{}' | tee "$composer_json" >/dev/null 2>&1
|
echo '{}' | tee "$composer_json" >/dev/null 2>&1
|
||||||
sudo chmod 644 "$composer_json"
|
sudo chmod 644 "$composer_json"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user