未验证 提交 39cd6d22 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

Hotfix/sangshuduo/td 13440 add taos benchmark back for2.4 (#10313)

* cherry pick from develop branch

* update taos-tools

* cherry pick 77f7bca2dc0358aff615e6dcf2fe60105ebbcfe0

* [TD-13531]<fix>: fix rm error: refusing to remove '.'
Co-authored-by: NHuo Linhe <linhehuo@gmail.com>
上级 c8176706
...@@ -546,7 +546,7 @@ function install_data() { ...@@ -546,7 +546,7 @@ function install_data() {
} }
function install_connector() { function install_connector() {
${csudo}cp -rf ${script_dir}/connector/ ${install_main_dir}/ [ -d "${script_dir}/connector/" ] && ${csudo}cp -rf ${script_dir}/connector/ ${install_main_dir}/
} }
function install_examples() { function install_examples() {
...@@ -858,7 +858,7 @@ function updateProduct() { ...@@ -858,7 +858,7 @@ function updateProduct() {
echo -e "\033[44;32;1m${productName} client is updated successfully!${NC}" echo -e "\033[44;32;1m${productName} client is updated successfully!${NC}"
fi fi
rm -rf $(tar -tf ${tarName}) rm -rf $(tar -tf ${tarName} |grep -v "^\./$")
} }
function installProduct() { function installProduct() {
...@@ -954,7 +954,7 @@ function installProduct() { ...@@ -954,7 +954,7 @@ function installProduct() {
fi fi
touch ~/.${historyFile} touch ~/.${historyFile}
rm -rf $(tar -tf ${tarName}) rm -rf $(tar -tf ${tarName} |grep -v "^\./$")
} }
## ==============================Main program starts from here============================ ## ==============================Main program starts from here============================
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册