Skip to content

Commit 3091d25

Browse files
committed
GH-48174: [CI][Dev] Fix shellcheck errors in ci/scripts/util_download_apache.sh
1 parent ef280b1 commit 3091d25

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ repos:
341341
?^ci/scripts/release_test\.sh$|
342342
?^ci/scripts/ruby_test\.sh$|
343343
?^ci/scripts/rust_build\.sh$|
344+
?^ci/scripts/util_download_apache\.sh$|
344345
?^ci/scripts/util_enable_core_dumps\.sh$|
345346
?^ci/scripts/util_free_space\.sh$|
346347
?^ci/scripts/util_log\.sh$|

ci/scripts/util_download_apache.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ APACHE_MIRRORS=(
4444

4545
mkdir -p "${target_dir}"
4646

47-
for mirror in ${APACHE_MIRRORS[*]}
47+
for mirror in "${APACHE_MIRRORS[@]}"
4848
do
49-
curl -SL "${mirror}/${tarball_path}" | tar -xzf - -C "${target_dir}"
50-
if [ $? == 0 ]; then
49+
if curl -SL "${mirror}/${tarball_path}" | tar -xzf - -C "${target_dir}"; then
5150
exit 0
5251
fi
5352
done

0 commit comments

Comments
 (0)