awslabs / crossplane-on-eks

Crossplane bespoke composition blueprints for AWS resources
Apache License 2.0
322 stars 111 forks source link

docs: fix sed syntax in eksctl bootstrap guide #31

Closed zxkane closed 2 years ago

zxkane commented 2 years ago

What does this PR do?

Motivation

More

Note:

For Moderators

Additional Notes

zxkane commented 2 years ago

yes, I ran the script on Ubuntu 18.04 + zsh.

$ uname -a
Linux ip-172-31-7-27 5.4.0-1075-aws #80~18.04.1-Ubuntu SMP Mon May 23 20:32:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
zxkane commented 2 years ago

update the sed usage for both GNU sed and BSD sed, it would create a bak file with suffix bak

nabuskey commented 2 years ago

So this is an issue with sed implementation differences. I assumed these commands are to be run on MacOS, thus BSD sed specific syntax. I tested these changes and the command changes here work with BSD and GNU sed. It will create a backup file which I wanted to avoid but insignificant in grand scheme of things.

@zxkane Thank you for these changes, did you ran into any other issues related to differences between BSD and GNU?