Skip to content
This repository was archived by the owner on Dec 21, 2020. It is now read-only.
This repository was archived by the owner on Dec 21, 2020. It is now read-only.

php_switch command fails on macOS #27

Description

@fvsch

Apparently the syntax used for sed commands is specific to the GNU sed and fails for macOS’s built-in sed:

$ ./stack.sh php_switch
[?] Which PHP version do you want to use? 5.4, [5.6], 7 or 7.1:
sed: 1: "docker-compose.config.sh": extra characters at the end of d command
sed: 1: "docker-compose.config.sh": extra characters at the end of d command
Selected php56 as PHP version

(Despite the message, the docker-compose.config.sh is not updated.)

I was able to work around this issue by installing gnu-sed with Homebrew:

$ brew install gnu-sed --with-default-names

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions