You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-46656: [CI][Dev] Fix shellcheck SC2034 and SC2086 errors in ci/scripts directory (#46657)
### Rationale for this change
We are trying to implement shellcheck on all sh files in #44748.
### What changes are included in this PR?
* SC2034 unused variable error. Use variable properly like `${1}` -> `${arrow_dir}`.
* SC2086 check require quoting like `${download_url}` -> `"${download_url}"`.
```
In ci/scripts/install_conda.sh line 30:
version=$2
^-----^ SC2034 (warning): version appears unused. Verify use (or export if used externally).
In ci/scripts/install_conda.sh line 37:
wget -nv ${download_url} -O /tmp/installer.sh
^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
```
### Are these changes tested?
Yes.
### Are there any user-facing changes?
No.
* GitHub Issue: #46656
Lead-authored-by: Hiroyuki Sato <[email protected]>
Co-authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
0 commit comments