Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

sed command in install.sh has wrong syntax for Mac OS X #25

Open
jordanlgraham opened this issue Aug 29, 2017 · 1 comment
Open

sed command in install.sh has wrong syntax for Mac OS X #25

jordanlgraham opened this issue Aug 29, 2017 · 1 comment

Comments

@jordanlgraham
Copy link

Executing the quick-start command:

composer create-project --stability dev --no-interaction --ignore-platform-reqs bradjonesllc/docker-drupal:dev-master PROJECT-DIR

I received an error from sh scripts/composer/install.sh:

sed: 1: ".gitignore": invalid command code .
Script sh scripts/composer/install.sh handling the post-create-project-cmd event returned with error code 1

Seems as though sed doesn't like a filename that begins with a period.

@bradjones1
Copy link
Member

@jordanlgraham This works on Linux but not Mac OS X, which appears to be a known issue with sed, not that it doesn't like the hidden-files dot prefix but that it requires different parameters. Open to a PR to fix on Mac.

See: https://stackoverflow.com/questions/4247068/sed-command-with-i-option-failing-on-mac-but-works-on-linux

@bradjones1 bradjones1 changed the title Quick-Start error from scripts/composer/install.sh sed command in install.sh has wrong syntax for Mac OS X Sep 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants