We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26583b8 commit 70ba5fcCopy full SHA for 70ba5fc
1 file changed
scripts/tools/tsfile/print-tsfile.sh
@@ -24,9 +24,11 @@ echo ---------------------
24
25
source "$(dirname "$0")/../../conf/iotdb-common.sh"
26
#get_iotdb_include and checkAllVariables is in iotdb-common.sh
27
+if [ -z "${IOTDB_HOME}" ]; then
28
+ export IOTDB_HOME="$(cd "`dirname "$0"`"/../..; pwd)"
29
+fi
30
VARS=$(get_iotdb_include "$*")
31
checkAllVariables
-export IOTDB_HOME="${IOTDB_HOME}/.."
32
eval set -- "$VARS"
33
34
@@ -51,4 +53,4 @@ done
51
53
MAIN_CLASS=org.apache.iotdb.db.tools.TsFileSketchTool
52
54
55
"$JAVA" $JVM_OPTS -cp "$CLASSPATH" "$MAIN_CLASS" "$@"
-exit $?
56
+exit $?
0 commit comments