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

fix: throw on undefined vars #45

Merged
merged 3 commits into from
Feb 11, 2020
Merged

Conversation

joscha
Copy link
Contributor

@joscha joscha commented Dec 3, 2019

No description provided.

@joscha
Copy link
Contributor Author

joscha commented Dec 3, 2019

apologies, I assumed this plugin had the necessary checks in place. Will attempt to change it, so it passes.

SINGULAR_UPLOAD_OBJECT="true"
if [[ -n "${BUILDKITE_PLUGIN_ARTIFACTS_UPLOAD:-}" ]] ; then
paths+=("${BUILDKITE_PLUGIN_ARTIFACTS_UPLOAD}")
elif [[ -n "${BUILDKITE_PLUGIN_ARTIFACTS_UPLOAD_FROM:-}" ]] && [[ -n "${BUILDKITE_PLUGIN_ARTIFACTS_UPLOAD_TO:-}" ]] ; then
RELOCATION="true"
paths+=("${BUILDKITE_PLUGIN_ARTIFACTS_UPLOAD}_FROM")
paths+=("${BUILDKITE_PLUGIN_ARTIFACTS_UPLOAD_FROM}")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this one was actually a bug uncovered by the -e flag

@toolmantim toolmantim merged commit 24381d4 into buildkite-plugins:master Feb 11, 2020
@joscha joscha deleted the patch-2 branch February 12, 2020 02:44
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

Successfully merging this pull request may close these issues.

None yet

2 participants