modify copy_udf.sh script to use the right root directory

This commit is contained in:
liuyq-617 2022-05-10 16:21:28 +08:00
parent 6862e45bc4
commit f2b8fa56da
1 changed files with 4 additions and 2 deletions

View File

@ -4,9 +4,10 @@ set +e
#set -x
echo "Executing copy_udf.sh"
SCRIPT_DIR=`pwd`
SCRIPT_DIR=`dirname $0`
cd $SCRIPT_DIR/../
SCRIPT_DIR=`pwd`
echo "SCRIPT_DIR: ${SCRIPT_DIR}"
IN_TDINTERNAL="community"
if [[ "$SCRIPT_DIR" == *"$IN_TDINTERNAL"* ]]; then
@ -16,6 +17,7 @@ else
fi
TAOS_DIR=`pwd`
echo "find udf library in $TAOS_DIR"
UDF1_DIR=`find $TAOS_DIR -name "libudf1.so"|grep lib|head -n1`
UDF2_DIR=`find $TAOS_DIR -name "libudf2.so"|grep lib|head -n1`