-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Add a bash/sh/zsh guard to avoid users running build-localy with them #2035
Conversation
I keep typing ``` bash build-\tab ``` which causes all kinds of problems. I think this would help me and likely others
@@ -1,8 +1,10 @@ | |||
#!/usr/bin/env python3 | |||
#!/bin/sh | |||
'''exec' "python3" "$0" "$@" #''' |
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.
Hmm this is even cooler.
My fear is that this encourages bad habits. but ok!
Well CIs are green, so this is here if there is some enthusiasm around it. |
@@ -1,8 +1,11 @@ | |||
#!/usr/bin/env python3 | |||
#!/bin/sh | |||
"""exec' "python3" "$0" "$@" #""" # fmt: off # fmt: on |
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 broken the script for those calling it with ./build-locally.py
I keep typing
which causes all kinds of problems. I think this would help me and likely others
Checklist
news
entry <--- Is this needed?python conda_smithy/schema.py
)