Skip to content

Commit cf79800

Browse files
committed
fix warning and info by shfmt
1 parent 977636f commit cf79800

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

ci/scripts/java_build.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@ if [[ "${ARROW_JAVA_BUILD:-ON}" != "ON" ]]; then
2222
exit
2323
fi
2424

25-
arrow_dir=${1}
2625
source_dir=${1}
2726
build_dir=${2}
2827
java_jni_dist_dir=${3}
2928

30-
: ${BUILD_DOCS_JAVA:=OFF}
29+
: "${BUILD_DOCS_JAVA:=OFF}"
3130

3231
mvn="mvn -B -DskipTests -Drat.skip=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
3332

34-
if [ $ARROW_JAVA_SKIP_GIT_PLUGIN ]; then
33+
if [ "$ARROW_JAVA_SKIP_GIT_PLUGIN" ]; then
3534
mvn="${mvn} -Dmaven.gitcommitid.skip=true"
3635
fi
3736

@@ -79,9 +78,9 @@ ${mvn} -T 2C clean install
7978
if [ "${BUILD_DOCS_JAVA}" == "ON" ]; then
8079
# HTTP pooling is turned of to avoid download issues https://issues.apache.org/jira/browse/ARROW-11633
8180
# GH-43378: Maven site plugins not compatible with multithreading
82-
mkdir -p ${build_dir}/docs/java/reference
81+
mkdir -p "${build_dir}"/docs/java/reference
8382
${mvn} -Dcheckstyle.skip=true -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false clean install site
84-
rsync -a target/site/apidocs/ ${build_dir}/docs/java/reference
83+
rsync -a target/site/apidocs/ "${build_dir}"/docs/java/reference
8584
fi
8685

8786
popd

ci/scripts/java_test.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ if [[ "${ARROW_JAVA_TEST:-ON}" != "ON" ]]; then
2222
exit
2323
fi
2424

25-
arrow_dir=${1}
2625
source_dir=${1}
2726
build_dir=${2}
2827
java_jni_dist_dir=${3}
@@ -31,7 +30,7 @@ mvn="mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMave
3130
# Use `2 * ncores` threads
3231
mvn="${mvn} -T 2C"
3332

34-
pushd ${build_dir}
33+
pushd "${build_dir}"
3534

3635
${mvn} -Darrow.test.dataRoot="${source_dir}/testing/data" clean test
3736

@@ -44,12 +43,12 @@ fi
4443
if [ "${#projects[@]}" -gt 0 ]; then
4544
${mvn} clean test \
4645
-Parrow-jni \
47-
-pl $(IFS=,; echo "${projects[*]}") \
48-
-Darrow.cpp.build.dir=${java_jni_dist_dir}
46+
-pl "$(IFS=,; echo \"${projects[*]}\")" \
47+
-Darrow.cpp.build.dir="${java_jni_dist_dir}"
4948
fi
5049

5150
if [ "${ARROW_JAVA_CDATA}" = "ON" ]; then
52-
${mvn} clean test -Parrow-c-data -pl c -Darrow.c.jni.dist.dir=${java_jni_dist_dir}
51+
${mvn} clean test -Parrow-c-data -pl c -Darrow.c.jni.dist.dir="${java_jni_dist_dir}"
5352
fi
5453

5554
popd

0 commit comments

Comments
 (0)