-
Notifications
You must be signed in to change notification settings - Fork 207
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 PLZ_ARGS variable to pleasew #1252
Conversation
pleasew
Outdated
@@ -69,4 +69,4 @@ for x in `ls "$DIR"`; do | |||
done | |||
ln -sf "${DIR}/please" "${LOCATION}/plz" | |||
echo -e >&2 "${GREEN}Should be good to go now, running plz...${RESET}" | |||
exec "$TARGET" "$@" | |||
exec "$TARGET" "$PLZ_ARGS" "$@" |
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 is an error if it's undefined? (we set +u at the top of the script)
I think something like "${PLZ_ARGS+}"
would help, but we also need to be sure it doesn't inject a spurious empty string into the arguments. Maybe just ${PLZ_ARGS+}
would do it?
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.
Silly me, I haven't actually tried it without $PLZ_ARGS
😄
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.
I think ${PLZ_ARGS:-}
will be the right syntax here.
287d42e
to
96b28c8
Compare
The breaking CI does not seem to be related. |
I think you might just need to merge master in. I fixed the up to date failures yesterday. |
I rebased from master this morning. |
96b28c8
to
51a590f
Compare
51a590f
to
8581109
Compare
5e24a0d
to
e5a2b6d
Compare
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
8581109
to
3dff715
Compare
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
When running please in a CI environment, copying the same arguments between scripts is error prone and tedious.
Setting a global
PLZ_ARGS
environment variable that's automatically in every invocation is a nice way around that. For example, setting plain output for every CI step is a good practice.I realized this might not be the absolute best solution, but it's a start and can be the start of a discussion.