[skip ci]Fix default log dir name for script (#11378)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2021-11-06 19:42:58 +08:00 committed by GitHub
parent 38375ee1d3
commit af9e120663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ set -e
ns_name=$1
prefix_name=$2
log_dir=${3:-"k8s_log"}
log_dir=${3:-"k8s_logs"}
array=($(kubectl get pod -n ${ns_name}|grep ${prefix_name}|awk '{print $1}'))
echo ${array[@]}
if [ ! -d $log_dir ];