diff --git a/README.md b/README.md index d75680cb22204011b628f45990355982a097ef64..c6d92d0bd231a43a9f1b75abb976e646f03ba7bf 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 3bebc62d3b822334f258d5323f9536c39fd1144d..0c240ca451ecf3f712225883636c470f09bbb47d 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 3699d52a9717e3007c50009d13d86006122fe7ec..af14c61c794f1680cbf6bc6e1dcda3ac7bb8fbd3 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 1590fdc83a09af0ad24473232e945e42fb988d36..94499a50cb7680f241c34fefdc2055d3669d269f 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 0ab8c045ca4edee72e9cd31852cb2362c3dc17fb..2682cac65fa93e99b160e7fed355accb37444f30 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 1aab55ddaa8ae863111540257ad3009253c770d3..cb4d86915cff9b6da12e1be2607ecafc1c0eead2 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 1714d3ecee5ecd8f606065450e81edabb7413ee4..ccb9fac4c0e69a4e6c01a3b5234219b7ff826ebb 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