diff --git a/validate_workflow.sh b/validate_workflow.sh index 217387087d1660f5f96e1b92d9884242051e2c49..5797e57e269732b3000eab1f9f22686b15076b9f 100755 --- a/validate_workflow.sh +++ b/validate_workflow.sh @@ -426,7 +426,7 @@ scan_file() { debug "scan_file, === entering protected area ===" if [ "$STAGE" = "any" ]; then is_valid=0 - for stage in current upcoming; do + for stage in upcoming current; do cmd=$(prepare_cmd "$MODE" "$ftype" "$stage" | sed -e "s#FILE#$filename#") is_valid=$(exec_cmd "$cmd" "$ftype" "$MODE" "$stage" "$logname") if [ "$is_valid" -eq 0 ]; then