This is an automated email from the ASF dual-hosted git repository.
Caideyipi pushed a commit to branch shell-fix
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/shell-fix by this push:
new ceaf08c4baf shell
ceaf08c4baf is described below
commit ceaf08c4baf43934d893264c067010126c683d50
Author: Caideyipi <[email protected]>
AuthorDate: Wed May 6 09:51:44 2026 +0800
shell
---
scripts/tools/tsfile/print-tsfile.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/tools/tsfile/print-tsfile.sh
b/scripts/tools/tsfile/print-tsfile.sh
index da1ba8d0688..3c32f8cb53d 100644
--- a/scripts/tools/tsfile/print-tsfile.sh
+++ b/scripts/tools/tsfile/print-tsfile.sh
@@ -24,9 +24,11 @@ echo ---------------------
source "$(dirname "$0")/../../conf/iotdb-common.sh"
#get_iotdb_include and checkAllVariables is in iotdb-common.sh
+if [ -z "${IOTDB_HOME}" ]; then
+ export IOTDB_HOME="$(cd "`dirname "$0"`"/../..; pwd)"
+fi
VARS=$(get_iotdb_include "$*")
checkAllVariables
-export IOTDB_HOME="${IOTDB_HOME}/.."
eval set -- "$VARS"
@@ -51,4 +53,4 @@ done
MAIN_CLASS=org.apache.iotdb.db.tools.TsFileSketchTool
"$JAVA" $JVM_OPTS -cp "$CLASSPATH" "$MAIN_CLASS" "$@"
-exit $?
\ No newline at end of file
+exit $?