This is an automated email from the ASF dual-hosted git repository.
aw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yetus.git
The following commit(s) were added to refs/heads/master by this push:
new 812be3a YETUS-796. multijdk doesn't ignore non-existent directory
812be3a is described below
commit 812be3aeb710a4bd6b58778a19525813be420148
Author: Allen Wittenauer <[email protected]>
AuthorDate: Fri Feb 15 11:43:41 2019 -0800
YETUS-796. multijdk doesn't ignore non-existent directory
Signed-off-by: Allen Wittenauer <[email protected]>
---
precommit/src/main/shell/test-patch.d/java.sh | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/precommit/src/main/shell/test-patch.d/java.sh
b/precommit/src/main/shell/test-patch.d/java.sh
index 0738009..a7d37e2 100755
--- a/precommit/src/main/shell/test-patch.d/java.sh
+++ b/precommit/src/main/shell/test-patch.d/java.sh
@@ -25,9 +25,11 @@ JAVA_INITIALIZED=false
function initialize_java
{
- local i
- local jdkdir
- local tmplist
+ declare i
+ declare jdkdir
+ declare -a tmplist
+
+ tmplist=()
if [[ ${JAVA_INITIALIZED} == true ]]; then
return
@@ -80,7 +82,7 @@ function initialize_java
fi
done
- JDK_DIR_LIST+=("${JAVA_HOME}")
+ JDK_DIR_LIST=("${tmplist[@]}" "${JAVA_HOME}")
}
function javac_initialize