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

generateCert function's sed command issue for osx. #62

Closed
bosoa opened this issue Mar 26, 2019 · 1 comment
Closed

generateCert function's sed command issue for osx. #62

bosoa opened this issue Mar 26, 2019 · 1 comment

Comments

@bosoa
Copy link

bosoa commented Mar 26, 2019

ISSUE: When running ./trade.sh generate -c tradechannel command for testing, I found sed command has issue on osx.

SOLVE: change [sed -i] with [sed -i ""].

REASON: Unlike Ubuntu, OS X requires the extension to be explicitly specified. The workaround is to set an empty string:
$ sed -i '' 's/megatron/pony/g' /path/to/file.txt
(ref: lmquang/til#18)

@VRamakrishna
Copy link
Collaborator

Fixed with da0d715

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

No branches or pull requests

2 participants