projects
/
drupal-init-tools.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8605b49
)
new.sh: use "composer config" instead of sed to set the patches file
author
Antonio Ospite <ao2@ao2.it>
Mon, 18 Dec 2017 15:09:57 +0000
(16:09 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Mon, 18 Dec 2017 15:09:57 +0000
(16:09 +0100)
libexec/new.sh
patch
|
blob
|
history
diff --git
a/libexec/new.sh
b/libexec/new.sh
index
0259f4e
..
bc88c00
100755
(executable)
--- a/
libexec/new.sh
+++ b/
libexec/new.sh
@@
-65,10
+65,8
@@
pushd "$DESTDIR"
git remote rename origin upstream
git checkout -b master
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 <<EOF
{
cat > composer.patches.json <<EOF
{