Last active
June 9, 2021 16:17
-
-
Save sta1r/cb3482fd946988cd7bfd35eb051e896c to your computer and use it in GitHub Desktop.
MacOS vs Ubuntu, sed for composer replace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -i '' '/"extra"/ i\\ | |
| "replace": {\ | |
| "dotmailer/dotmailer-magento2-extension": "*",\ | |
| "dotmailer/dotmailer-magento2-extension-chat": "*",\ | |
| "dotmailer/dotmailer-magento2-extension-enterprise": "*",\ | |
| "dotmailer/dotmailer-magento2-extension-sms": "*",\ | |
| "dotmailer/dotmailer-magento2-extension-b2b": "*"\ | |
| }, | |
| ' composer.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -i '/"extra"/ i "replace": {\n"dotmailer/dotmailer-magento2-extension": "*",\n"dotmailer/dotmailer-magento2-extension-chat": "*",\n"dotmailer/dotmailer-magento2-extension-enterprise": "*",\n"dotmailer/dotmailer-magento2-extension-sms": "*",\n"dotmailer/dotmailer-magento2-extension-b2b": "*"\n},' composer.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment