X-Git-Url: https://git.ao2.it/drupal-init-tools.git/blobdiff_plain/d0fd5db3b8fac6455bfe7a910fec67eeb127d11a..715140abfeb3fbe931fdbfd24e90b378b6968242:/libexec/new.sh diff --git a/libexec/new.sh b/libexec/new.sh index a73b894..890b1d0 100755 --- a/libexec/new.sh +++ b/libexec/new.sh @@ -20,7 +20,7 @@ set -e usage() { cat < +usage: drin $(basename "$0" .sh) [-h|--help] Create a new Drupal project in the 'destdir' directory. @@ -64,14 +64,9 @@ pushd "$DESTDIR" git remote rename origin upstream git checkout -b master -echo >> .gitignore -echo "# Ignore the configuration for the bootstrap script" >> .gitignore -echo "bootstrap.conf" >> .gitignore -# 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 <