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 distfile basename in staging script #508

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

bentranter
Copy link
Member

Before this change, the basename would always be generated to contain the string .exe. This fixes the script in a shellcheck-compliant way so that we're back to the old behaviour.

It also fixes the error introduced by the u flag in set -euo pipefail when the script is invoked without a label or set SKIPBUILD so that those fall back to an empty default value.

Before this change, the basename would always be generated to contain
the string `.exe`. This fixes the script in a shellcheck-compliant way
so that we're back to the old behaviour.

It also fixes the error introduced by the `u` flag in `set -euo
pipefail` when the script is invoked without a `label` or set
`SKIPBUILD` so that those fall back to an empty default value.
@bentranter bentranter requested a review from hilary July 22, 2019 19:08
@bentranter bentranter changed the title Fix distfile basename Fix distfile basename in staging script Jul 22, 2019
Copy link
Contributor

@hilary hilary left a comment

Choose a reason for hiding this comment

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

:shipit:

@@ -52,7 +52,7 @@ fi
cd "$RELEASE_DIR"

for f in "$STAGE_DIR"/*; do
distfile_basename=$(basename "${f}%.exe")
distfile_basename=$(basename "${f%".exe"}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Doh! That's what I get for continuing to code when frustrated...

@hilary hilary merged commit bf4d38c into digitalocean:master Jul 22, 2019
@bentranter bentranter deleted the bug-staging-script-filenames branch July 22, 2019 19:28
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.

2 participants