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

demo-playground up.sh error: sed: 1: "inventory/maya-demo/inv ...": command i expects \ followed by text #2

Open
watcher00090 opened this issue Feb 22, 2021 · 0 comments

Comments

@watcher00090
Copy link
Contributor

On Mac OS-X 11.2.1, up.sh runs fine until it stops with the following error:

+ sed -i '/^bastion/d' inventory/maya-demo/inventory.ini
sed: 1: "inventory/maya-demo/inv ...": command i expects \ followed by text

This issue arises because the 'sed' command on OS-X is of a slightly different flavor than the GNU sed. We can solve this issue by explicitly creating backup files with sed, by using a command like this:

sed -i'.original' '/^bastion/d' inventory/maya-demo/inventory.ini

, or by using an alternative to sed, for instance perl. See this StackOverflow post for more information.

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

1 participant