-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add masOS compatibility for 'sed' usage in scripts #1827
Add masOS compatibility for 'sed' usage in scripts #1827
Conversation
974818e
to
8015f73
Compare
|
8015f73
to
383eee6
Compare
Not sure but could endup this by replace gnu-sed |
@hungran Exactly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
383eee6
to
e6dec28
Compare
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
defa685
to
89749c9
Compare
empty line issue, just run the script locally and push! |
1ce148e
to
6c6d5dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
previous
# cleanup unecessary consecutive whitelines
sed -i '/^[[:space:]]*$/N;/^[[:space:]]*\n[[:space:]]*$/D' $TMP_FILE
was working on macOS and Linux for me.
It doesn't work for you? can you dump your sed version maybe?
# cleanup unecessary consecutive whitelines
sed -i'' -e '/^[[:space:]]*$/N;/^[[:space:]]*\n[[:space:]]*$/D' $TMP_FILE It works and does what it should do ( |
4dc0ed9
to
cca66f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't run the same in the CI and on your platform since git status
returns something. You can't reproduce?
cca66f7
to
9d9260f
Compare
Rebased to @mtardy Exactly, I'm not able to reproduce this locally. |
going to give this a small nudge. Would be nice if MacOS works also. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Philip, sorry for the length but those kinds of compatibility things are a bit annoying as you saw 😛!
I think the generated file test passes now, don't know what changed but it looks good! Let's merge this when the whole CI passes.
9d9260f
to
2db96d6
Compare
Signed-off-by: Philip Schmid <philip.schmid@isovalent.com>
2db96d6
to
cc7ed7a
Compare
Thanks!! 🎉 |
No description provided.