Skip to content

refactor(common): fix shellcheck warnings#14580

Merged
ermshiperete merged 4 commits intomasterfrom
refactor/common/shellcheck
Aug 27, 2025
Merged

refactor(common): fix shellcheck warnings#14580
ermshiperete merged 4 commits intomasterfrom
refactor/common/shellcheck

Conversation

@ermshiperete
Copy link
Copy Markdown
Contributor

Test-bot: skip

@keymanapp-test-bot
Copy link
Copy Markdown

keymanapp-test-bot bot commented Aug 21, 2025

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S10 milestone Aug 21, 2025
set +o noglob

if ([[ "$prTestCommand" == skip ]] || [[ -z "${prTestCommand// }" ]]) && [[ -z "${prTestBody// }" ]]; then
if { [[ "${prTestCommand}" == skip ]] || [[ -z "${prTestCommand// }" ]]; } && [[ -z "${prTestBody// }" ]]; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm unclear how the curly brace grouping works in an if statement

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That was a suggestion from shellcheck (SC2235). Serves the same purpose as the parens, but doesn't create a subshell and so is faster.

Copy link
Copy Markdown
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

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

lgtm

@github-actions github-actions bot added common/ and removed common/ labels Aug 26, 2025
Also rename variables to make it clearer that `buildBotCommand` contains
multiple commands.
@github-actions github-actions bot added common/ and removed common/ labels Aug 27, 2025
@ermshiperete ermshiperete merged commit 64e6fcd into master Aug 27, 2025
29 checks passed
@ermshiperete ermshiperete deleted the refactor/common/shellcheck branch August 27, 2025 16:27
@github-project-automation github-project-automation bot moved this from Todo to Done in Keyman Aug 27, 2025
@keyman-server
Copy link
Copy Markdown
Collaborator

Changes in this pull request will be available for download in Keyman version 19.0.106-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants