From: Antonio Ospite Date: Mon, 18 Dec 2017 15:09:57 +0000 (+0100) Subject: new.sh: use "composer config" instead of sed to set the patches file X-Git-Tag: v0.1.0~2 X-Git-Url: https://git.ao2.it/drupal-init-tools.git/commitdiff_plain/71fe26eecf083217461e8f4f1bde959a10eb7466?ds=inline new.sh: use "composer config" instead of sed to set the patches file --- diff --git a/libexec/new.sh b/libexec/new.sh index 0259f4e..bc88c00 100755 --- a/libexec/new.sh +++ b/libexec/new.sh @@ -65,10 +65,8 @@ pushd "$DESTDIR" 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 <