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) { ...@@ -11,15 +11,10 @@ function loadEarly($items) {
} }
} }
print("a1");
if (file_exists('composer.json')) { if (file_exists('composer.json')) {
print("a2");
$composer = json_decode(file_get_contents('composer.json'), TRUE); $composer = json_decode(file_get_contents('composer.json'), TRUE);
print("a2n");
if (isset($composer['extra']['l3d'])) { if (isset($composer['extra']['l3d'])) {
print("a3");
foreach ($composer['extra']['l3d'] as $type => $args) { foreach ($composer['extra']['l3d'] as $type => $args) {
print("a4: " . $type);
if ($type === 'load-early') { if ($type === 'load-early') {
loadEarly($args); loadEarly($args);
} }
......
...@@ -4,6 +4,10 @@ function l3dComposer { ...@@ -4,6 +4,10 @@ function l3dComposer {
php /usr/local/bin/.l3dComposer.php php /usr/local/bin/.l3dComposer.php
} }
function permissions {
chmod -R g+w .
}
function readEnv { function readEnv {
if [[ -f ".env" ]]; then if [[ -f ".env" ]]; then
# shellcheck disable=SC2046 # shellcheck disable=SC2046
...@@ -43,6 +47,7 @@ function create { ...@@ -43,6 +47,7 @@ function create {
composer create-project "${PROJECT}" ./ --no-interaction composer create-project "${PROJECT}" ./ --no-interaction
fi fi
l3dComposer l3dComposer
permissions
restoreEnvFile restoreEnvFile
if [[ -f "docker-compose.yml" ]]; then if [[ -f "docker-compose.yml" ]]; then
...@@ -95,7 +100,8 @@ function clone { ...@@ -95,7 +100,8 @@ function clone {
truncateCurrentDirectory truncateCurrentDirectory
git clone "${REPOSITORY}" . git clone "${REPOSITORY}" .
l3dComposer l3dComposer
composer update composer create-project
permissions
restoreEnvFile 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