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

[CI][Dev] Apply ShellCheck lint to ci/scripts/c_glib_test.sh #44749

Closed
kou opened this issue Nov 17, 2024 · 1 comment
Closed

[CI][Dev] Apply ShellCheck lint to ci/scripts/c_glib_test.sh #44749

kou opened this issue Nov 17, 2024 · 1 comment

Comments

@kou
Copy link
Member

kou commented Nov 17, 2024

Describe the enhancement requested

This is a sub issue of #44748.

Component(s)

Continuous Integration, Developer Tools

kou added a commit to kou/arrow that referenced this issue Nov 17, 2024
…test.sh

```console
$ pre-commit run --show-diff-on-failure --color=always --all-files shellcheck
ShellCheck v0.10.0.......................................................Failed
- hook id: shellcheck
- exit code: 1

In ci/scripts/c_glib_test.sh line 25:
: ${ARROW_GLIB_VAPI:=true}
  ^----------------------^ SC2223 (info): This default assignment may cause DoS due to globbing. Quote it.

In ci/scripts/c_glib_test.sh line 37:
pushd ${source_dir}
      ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean:
pushd "${source_dir}"

In ci/scripts/c_glib_test.sh line 54:
pushd ${build_dir}
      ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean:
pushd "${build_dir}"

For more information:
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
  https://www.shellcheck.net/wiki/SC2223 -- This default assignment may cause...
```
assignUser pushed a commit that referenced this issue Nov 18, 2024
#44750)

### Rationale for this change

```console
$ pre-commit run --show-diff-on-failure --color=always --all-files shellcheck
ShellCheck v0.10.0.......................................................Failed
- hook id: shellcheck
- exit code: 1

In ci/scripts/c_glib_test.sh line 25:
: ${ARROW_GLIB_VAPI:=true}
  ^----------------------^ SC2223 (info): This default assignment may cause DoS due to globbing. Quote it.

In ci/scripts/c_glib_test.sh line 37:
pushd ${source_dir}
      ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean:
pushd "${source_dir}"

In ci/scripts/c_glib_test.sh line 54:
pushd ${build_dir}
      ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean:
pushd "${build_dir}"

For more information:
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
  https://www.shellcheck.net/wiki/SC2223 -- This default assignment may cause...
```

### What changes are included in this PR?

* Add missing quotes.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: #44749

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
@assignUser assignUser added this to the 19.0.0 milestone Nov 18, 2024
@assignUser
Copy link
Member

Issue resolved by pull request 44750
#44750

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

No branches or pull requests

2 participants