diff --git a/main_tools/ConfPass.sh b/main_tools/ConfPass.sh index 7a7d993..91dfe35 100755 --- a/main_tools/ConfPass.sh +++ b/main_tools/ConfPass.sh @@ -111,8 +111,6 @@ then exit 1 fi -print_info "[${BASENAME}] => Conf Pass start | $(date +'%d/%m/%y %H:%M:%S')" 1 - #-------------# # GLOBAL VARS # #-------------# @@ -127,6 +125,8 @@ RES_CONF_DIR="$OUTPUT_DIR/conf/$RES_NAME/scored_ctm" LOGFILE="${OUTPUT_DIR_BASENAME}/info_conf.log" ERRORFILE="${OUTPUT_DIR_BASENAME}/error_conf.log" +print_info "[${BASENAME}] => Conf Pass start | $(date +'%d/%m/%y %H:%M:%S')" 1 + #------------------# # Create Workspace # #------------------# @@ -173,7 +173,7 @@ fi # Check if treil are here nbres_p1=$(cat ${INPUT_DIR}/plp.lst | wc -l) -nbtreil_p=$(ls $RES_P/*.treil 2> /dev/null | wc -l) +nbtreil_p=$(ls ${RES_P}/*.treil 2> /dev/null | wc -l) if [ $nbtreil_p -eq 0 ] then print_error "[${BASENAME}] No ${RES_NAME} Pass, No .treil -> exit ConfPass" @@ -189,7 +189,7 @@ else print_info "[${BASENAME}] ${RES_NAME}/*.treil are here" 1 else print_warn "[${BASENAME}] not enough ${RES_NAME} treil" 2 - if [ $CHECK -eq 1 ]; then print_log_file $ERRORFILE "Not enough ${RES_NAME} treil " + if [ $CHECK -eq 1 ]; then print_log_file $ERRORFILE "Not enough ${RES_NAME} treil ";fi fi fi fi