From 1e84961d028c97a87b4dc9992facaf74f0c0c307 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Tue, 11 Apr 2023 09:39:07 +0800 Subject: [PATCH] fix: packaging/tools/install.sh (#20849) --- packaging/tools/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/tools/install.sh b/packaging/tools/install.sh index 88f53a9ca3..849ab5a92a 100755 --- a/packaging/tools/install.sh +++ b/packaging/tools/install.sh @@ -599,12 +599,14 @@ function install_data() { } function install_connector() { - [ -d "${script_dir}/connector/" ] && ${csudo}cp -rf ${script_dir}/connector/ ${install_main_dir}/ + if [ -d "${script_dir}/connector/" ]; then + ${csudo}cp -rf ${script_dir}/connector/ ${install_main_dir}/ || echo "failed to copy connector" + fi } function install_examples() { if [ -d ${script_dir}/examples ]; then - ${csudo}cp -rf ${script_dir}/examples/* ${install_main_dir}/examples + ${csudo}cp -rf ${script_dir}/examples/* ${install_main_dir}/examples || echo "failed to copy examples" fi } -- GitLab