diff --git a/README.md b/README.md index d75680cb22..c6d92d0bd2 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ sudo apt-get install maven Build TDengine: ``` -mkdir build && cd build +mkdir debug && cd debug cmake .. && cmake --build . ``` diff --git a/tests/script/sh/cfg.sh b/tests/script/sh/cfg.sh index 3bebc62d3b..0c240ca451 100755 --- a/tests/script/sh/cfg.sh +++ b/tests/script/sh/cfg.sh @@ -42,7 +42,7 @@ fi TAOS_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TAOS_DIR/$BIN_DIR diff --git a/tests/script/sh/clear.sh b/tests/script/sh/clear.sh index 3699d52a97..af14c61c79 100755 --- a/tests/script/sh/clear.sh +++ b/tests/script/sh/clear.sh @@ -45,7 +45,7 @@ fi TAOS_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TAOS_DIR/$BIN_DIR diff --git a/tests/script/sh/deploy.sh b/tests/script/sh/deploy.sh index 1590fdc83a..94499a50cb 100755 --- a/tests/script/sh/deploy.sh +++ b/tests/script/sh/deploy.sh @@ -40,7 +40,7 @@ fi TAOS_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TAOS_DIR/$BIN_DIR diff --git a/tests/script/sh/exec.sh b/tests/script/sh/exec.sh index 0ab8c045ca..2682cac65f 100755 --- a/tests/script/sh/exec.sh +++ b/tests/script/sh/exec.sh @@ -51,7 +51,7 @@ fi TAOS_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TAOS_DIR/$BIN_DIR diff --git a/tests/script/sh/exec_tarbitrator.sh b/tests/script/sh/exec_tarbitrator.sh index 1aab55ddaa..cb4d86915c 100755 --- a/tests/script/sh/exec_tarbitrator.sh +++ b/tests/script/sh/exec_tarbitrator.sh @@ -48,7 +48,7 @@ fi TAOS_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TAOS_DIR/$BIN_DIR diff --git a/tests/script/test.sh b/tests/script/test.sh index 1714d3ecee..ccb9fac4c0 100755 --- a/tests/script/test.sh +++ b/tests/script/test.sh @@ -50,7 +50,7 @@ fi TOP_DIR=`pwd` -BIN_DIR=`find . -name "taosd"|grep bin| cut -d '/' --fields=2,3` +BIN_DIR=`find . -name "taosd"|grep bin|head -n1|cut -d '/' --fields=2,3` BUILD_DIR=$TOP_DIR/$BIN_DIR