X-Git-Url: https://git.ao2.it/drupal-init-tools.git/blobdiff_plain/8605b497103416629f9ca1bc6e76e6276db8f0e5..3451b71196a4beb632d7f9d37fdeee6ce4b4a811:/libexec/new.sh diff --git a/libexec/new.sh b/libexec/new.sh index 0259f4e..c083b59 100755 --- a/libexec/new.sh +++ b/libexec/new.sh @@ -60,15 +60,13 @@ command -v git &> /dev/null || { echo "Aborting, 'git' not available." 1>&2; exi echo "Creating a new Drupal project..." composer create-project drupal-composer/drupal-project:8.x-dev@dev "$DESTDIR" --keep-vcs --stability dev --no-interaction -pushd "$DESTDIR" +pushd "$DESTDIR" > /dev/null git remote rename origin upstream git checkout -b master -# Add some patches, use sed until composer can do that from the command line -# (e.g. composer config ...) -sed -i -e 's@"extra": {@"extra": {\ - "patches-file": "composer.patches.json",@' composer.json +# Add some patches +composer config extra.patches-file "composer.patches.json" cat > composer.patches.json < bootstrap.conf < .gitignore <> .gitignore < /dev/null