Skip to content
Snippets Groups Projects
Commit 07d0200d authored by jurgenhaas's avatar jurgenhaas
Browse files

Merge branch 'release/v1.12.5'

parents c158f523 1f29fbc4
No related branches found
No related tags found
No related merge requests found
v1.12.5 2020-03-31
------------------
Remove debug code
Set write permissions for group after initial composer command
v1.12.4 2020-03-31
------------------
Ensure .composer/auth.json and .gitconfig more explicitly
......
......@@ -11,15 +11,10 @@ function loadEarly($items) {
}
}
print("a1");
if (file_exists('composer.json')) {
print("a2");
$composer = json_decode(file_get_contents('composer.json'), TRUE);
print("a2n");
if (isset($composer['extra']['l3d'])) {
print("a3");
foreach ($composer['extra']['l3d'] as $type => $args) {
print("a4: " . $type);
if ($type === 'load-early') {
loadEarly($args);
}
......
......@@ -4,6 +4,10 @@ function l3dComposer {
php /usr/local/bin/.l3dComposer.php
}
function permissions {
chmod -R g+w .
}
function readEnv {
if [[ -f ".env" ]]; then
# shellcheck disable=SC2046
......@@ -43,6 +47,7 @@ function create {
composer create-project "${PROJECT}" ./ --no-interaction
fi
l3dComposer
permissions
restoreEnvFile
if [[ -f "docker-compose.yml" ]]; then
......@@ -95,7 +100,8 @@ function clone {
truncateCurrentDirectory
git clone "${REPOSITORY}" .
l3dComposer
composer update
composer create-project
permissions
restoreEnvFile
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment