diff --git a/tests/scripts/ci_logs.sh b/tests/scripts/ci_logs.sh index 98e1154210..f841e2084c 100755 --- a/tests/scripts/ci_logs.sh +++ b/tests/scripts/ci_logs.sh @@ -88,7 +88,8 @@ fi # Try to found logs file from mount disk /volume1/ci-logs # log_files=$(find ${LOG_DIR} -type f -name "*${RELEASE_NAME}*" ) log_files=$(ls ${LOG_DIR} | grep ${RELEASE_NAME} || echo nonexistment) -if [ "${log_files}"="nonexistment" ]; then + +if [ "${log_files}" == "nonexistment" ]; then echo "No log files find" else for log_file in ${log_files} @@ -102,11 +103,11 @@ fi # remain_log_files=$(find ${LOG_DIR} -type f -name "*${RELEASE_NAME}*") -ls ${LOG_DIR} | grep ${RELEASE_NAME} +# ls ${LOG_DIR} | grep ${RELEASE_NAME} remain_log_files=$(ls ${LOG_DIR} | grep ${RELEASE_NAME} || echo nonexistment) -if [ "${remain_log_files}"="nonexistment" ]; then +if [ "${remain_log_files}" == "nonexistment" ]; then echo "No remain log files" else echo "Still have log files & Remove again"