Commit f3043a8b949ebc79be54053c83fe110e9fedc59c

Authored by Jean-François Rey
1 parent 48b8af9ef5
Exists in master

bugfix

Showing 2 changed files with 4 additions and 4 deletions Side-by-side Diff

main_tools/ConfPass.sh
... ... @@ -207,8 +207,8 @@
207 207 #--------------------#
208 208  
209 209 # Check pourcentage of scored_ctm already done, if < 85% do confidence measure
210   -nbres_p=$(ls ${RES_P}/*.treil | wc -l)
211   -nbconf=$(ls ${RES_CONF_DIR}/*.res | wc -l)
  210 +nbres_p=$(ls ${RES_P}/*.treil 2> /dev/null | wc -l)
  211 +nbconf=$(ls ${RES_CONF_DIR}/*.res 2> /dev/null | wc -l)
212 212 if [ $nbres_p -gt 0 ]
213 213 then
214 214 pourcentageres=$((($nbconf*100)/$nbres_p))
... ... @@ -225,7 +225,7 @@
225 225 ### Check scored_ctm number res files !
226 226 if [ $CHECK -eq 1 ]
227 227 then
228   - nbconf=$(ls ${RES_CONF_DIR}/*.res | wc -l)
  228 + nbconf=$(ls ${RES_CONF_DIR}/*.res 2> /dev/null | wc -l)
229 229 if [ $nbres_p -ne $nbconf ]
230 230 then
231 231 print_warn "WARN : ConfPass $INPUT_DIR/$RES_NAME number of res files differ" 2
main_tools/ExploitConfidencePass.sh
... ... @@ -178,7 +178,7 @@
178 178 if [ $( ${RES_CONf_DIR}/*.res 2> /dev/null | wc -l) -eq 0 ]
179 179 then
180 180 print_error "[${BASENAME}] No Conf Pass res -> exit ExploitConfPass"
181   - if [ $CHECK -eq 1 ]; then print_log_file $ERRORFILE "No ConfPass res in $[RES_CONf_DIR}" ;fi
  181 + if [ $CHECK -eq 1 ]; then print_log_file $ERRORFILE "No ConfPass res in ${RES_CONf_DIR}" ;fi
182 182 exit 1
183 183 fi
184 184