Commit e75ecda
authored
### Rationale for this change
This is the sub issue #44748.
* SC2155: Declare and assign separately to avoid masking return values.
* SC2086: Double quote to prevent globbing and word splitting.
```
shellcheck ci/scripts/csharp_test.sh
In ci/scripts/csharp_test.sh line 33:
export PYTHONNET_PYDLL=$(${PYTHON} -m find_libpython)
^-------------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
In ci/scripts/csharp_test.sh line 35:
pushd ${source_dir}
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
pushd "${source_dir}"
For more information:
https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
```
### What changes are included in this PR?
* Declare and assign a variable separately.
* Quoting like `"${source_dir}"`
### Are these changes tested?
Yes.
### Are there any user-facing changes?
No.
* GitHub Issue: #46794
Authored-by: Hiroyuki Sato <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 639201b commit e75ecda
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
0 commit comments