Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix sed error on macOS #4

Closed
wants to merge 1 commit into from
Closed

docs: fix sed error on macOS #4

wants to merge 1 commit into from

Conversation

ZhangChaoWN
Copy link
Contributor

resolve #3

@@ -146,7 +146,7 @@ go env -w GOPROXY=https://goproxy.cn,direct
## gradle

```shell
sed -i 's/services.gradle.org/downloads.gradle-dn.com/g' ./gradle/wrapper/gradle-wrapper.properties
sed -i '' 's/services.gradle.org/downloads.gradle-dn.com/g' ./gradle/wrapper/gradle-wrapper.properties
Copy link
Contributor

@sinkcup sinkcup Apr 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mac sed 和 GNU sed 不同,这样改的话,Linux 就无法执行了,参考:https://github.com/sinkcup/laravel-demo/blob/6e643b862b8ff1f4b2718b4316f5efcf2920bf97/phpunit.sh#L14

@sinkcup
Copy link
Contributor

sinkcup commented Jul 15, 2020

推荐使用 https://github.com/fabiomaia/linuxify

@sinkcup sinkcup closed this Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sed 命令在 macOS 执行报错
2 participants