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

Remove debug code

Set write permissions for group after initial composer command
parent a7552d65
No related branches found
No related tags found
No related merge requests found
......@@ -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