mirror of https://github.com/milvus-io/milvus.git
parent
f9137d880b
commit
211880f0da
|
@ -87,9 +87,9 @@ if [[ ! -d ${RELEASE_LOG_DIR} ]] ;then
|
||||||
fi
|
fi
|
||||||
# Try to found logs file from mount disk /volume1/ci-logs
|
# Try to found logs file from mount disk /volume1/ci-logs
|
||||||
# log_files=$(find ${LOG_DIR} -type f -name "*${RELEASE_NAME}*" )
|
# log_files=$(find ${LOG_DIR} -type f -name "*${RELEASE_NAME}*" )
|
||||||
log_files=$(ls ${LOG_DIR} | grep ${RELEASE_NAME} || echo nonexistment)
|
log_files=$(ls ${LOG_DIR} | grep ${RELEASE_NAME} || echo nonexistent)
|
||||||
|
|
||||||
if [ "${log_files}" == "nonexistment" ]; then
|
if [ "${log_files}" == "nonexistent" ]; then
|
||||||
echo "No log files find"
|
echo "No log files find"
|
||||||
else
|
else
|
||||||
for log_file in ${log_files}
|
for log_file in ${log_files}
|
||||||
|
@ -105,9 +105,9 @@ fi
|
||||||
|
|
||||||
# ls ${LOG_DIR} | grep ${RELEASE_NAME}
|
# ls ${LOG_DIR} | grep ${RELEASE_NAME}
|
||||||
|
|
||||||
remain_log_files=$(ls ${LOG_DIR} | grep ${RELEASE_NAME} || echo nonexistment)
|
remain_log_files=$(ls ${LOG_DIR} | grep ${RELEASE_NAME} || echo nonexistent)
|
||||||
|
|
||||||
if [ "${remain_log_files}" == "nonexistment" ]; then
|
if [ "${remain_log_files}" == "nonexistent" ]; then
|
||||||
echo "No remain log files"
|
echo "No remain log files"
|
||||||
else
|
else
|
||||||
echo "Still have log files & Remove again"
|
echo "Still have log files & Remove again"
|
||||||
|
@ -116,5 +116,5 @@ else
|
||||||
rm -rf ${LOG_DIR}/${log_file}
|
rm -rf ${LOG_DIR}/${log_file}
|
||||||
done
|
done
|
||||||
echo "Check if any remain log files after using rm to delete again "
|
echo "Check if any remain log files after using rm to delete again "
|
||||||
ls ${LOG_DIR} | grep ${RELEASE_NAME}
|
ls ${LOG_DIR} | grep ${RELEASE_NAME} || echo nonexistent
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue