clean-docker / Magento2

Docker Image to Magento 2 local development in Mac, Linux and Windows
https://hub.docker.com/r/rafaelcgstz/magento2/
MIT License
444 stars 251 forks source link

bad flag in substitute command: 'U' #98

Open javierenciso opened 5 years ago

javierenciso commented 5 years ago

Hi having this issue when installing via curl in mac osx:

bad flag in substitute command: 'U'

and installation halts.

RESOLVED: I was naming my project with absolute path: sed fails when using forwardslash.

If I execute in parent directory where I want my new project it instllas correctly.

/best

XiaoZiShan commented 1 year ago

Sorry, I'm network not stable, reply not succeed before, please see following image. image

sed -i '' "s/<pre>.*<\/pre>/<pre>($NEWNAME) $MD5<\/pre>/"~/Desktop/replace.html replace to sed -i '' "s~<pre>.*</pre>~<pre>($NEWNAME) $MD5</pre>~" ~/Desktop/replace.html

see url 1 see url 2