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

chore(bash): update script per shellcheck recs #28

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

gforsyth
Copy link
Member

@gforsyth gforsyth commented Oct 10, 2023

Periodically I remember that shellcheck exists. Today was one of those days and so I've made a
few small syntax changes to the update script to avoid some common bashy gotchas.

@github-actions
Copy link

ACTION NEEDED

Substrait follows the Conventional Commits
specification
for
release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

@gforsyth gforsyth changed the title chore(bash): fix up update script per shellcheck recs chore(bash): update script per shellcheck recs Oct 10, 2023

VERSION=$(echo $VERSION | sed 's/v//')
VERSION=${VERSION//v/}
Copy link
Member

Choose a reason for hiding this comment

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

Does this add a v to the beginning or remove it?

Copy link
Member Author

Choose a reason for hiding this comment

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

it removes it -- bash substitution uses a different collection of slashes as compared to sed because of course it does.

${variable//find/replace}

@gforsyth gforsyth merged commit 08332a9 into substrait-io:main Oct 11, 2023
13 of 15 checks passed
@gforsyth gforsyth deleted the gil/shellcheck branch October 11, 2023 13:12
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.

3 participants