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

ensure that add_new_event.sh works on Windows #12279

Open
bridgetkromhout opened this issue Feb 16, 2023 · 1 comment
Open

ensure that add_new_event.sh works on Windows #12279

bridgetkromhout opened this issue Feb 16, 2023 · 1 comment

Comments

@bridgetkromhout
Copy link
Collaborator

We got a report via @jmgress that https://github.com/devopsdays/devopsdays-web/blob/main/utilities/add_new_event.sh#L39-L47 may have an issue (possibly around the ../static/_redirects bit) on Windows. (My guess is that bit currently makes an assumption about the CWD that may need revisiting.)

The reported error found when making a new tampa event (when there was an existing tampa event) was:

Getting the following error running on Windows (git Bash) sed: can't read /^/tampa/ s/.{4}-tampa/2023-tampa/: No such file or directory

@larstobi
Copy link
Contributor

I'm getting the same error on MacOS when I override the built-in FreeBSD sed with GNU sed:

$ ./utilities/add_new_event.sh
Enter your event year (default: 2023):
Enter your city name: Oslo
Enter your devopsdays event twitter handle (defaults to devopsdays): devopsdaysoslo
sed: can't read /^\/oslo/ s/.\{4\}-oslo/2023-oslo/: No such file or directory

When I remove the override and use the FreeBSD sed it works. The two sed utils don't use the same syntax.

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