This is an automated email from the ASF dual-hosted git repository.
yuqi1129 pushed a commit to branch branch-1.3
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-1.3 by this push:
new 6b7846c6f1 [Cherry-pick to branch-1.3] [#12444] fix(scripts): Prevent
empty classpath entry in common.sh (#12537) (#12568)
6b7846c6f1 is described below
commit 6b7846c6f11dcfdf2c4492c9d3c3a2a467f791a6
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Aug 24 09:42:00 2026 +0800
[Cherry-pick to branch-1.3] [#12444] fix(scripts): Prevent empty classpath
entry in common.sh (#12537) (#12568)
**Cherry-pick Information:**
- Original commit: f461aa31aa758e9b8f2743795a34fc31f8456a68
- Target branch: `branch-1.3`
- Status: ✅ Clean cherry-pick (no conflicts)
Co-authored-by: 张万义 <[email protected]>
---
bin/common.sh.template | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/bin/common.sh.template b/bin/common.sh.template
index 1f38dd38b8..b7642b3d3a 100644
--- a/bin/common.sh.template
+++ b/bin/common.sh.template
@@ -51,7 +51,11 @@ if [[ -z "${GRAVITINO_VERSION}" ]]; then
exit 1
fi
-GRAVITINO_CLASSPATH+=":${GRAVITINO_CONF_DIR}"
+if [[ -n "${GRAVITINO_CLASSPATH}" ]]; then
+ GRAVITINO_CLASSPATH="${GRAVITINO_CLASSPATH}:${GRAVITINO_CONF_DIR}"
+else
+ GRAVITINO_CLASSPATH="${GRAVITINO_CONF_DIR}"
+fi
JVM_VERSION=8
function check_java_version() {