From 71fe26eecf083217461e8f4f1bde959a10eb7466 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Mon, 18 Dec 2017 16:09:57 +0100 Subject: [PATCH] new.sh: use "composer config" instead of sed to set the patches file --- libexec/new.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 <