Skip to content
Snippets Groups Projects
Commit 7c97a5a2 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

Update validate_workflow.sh

parent 4eac3bec
No related branches found
No related tags found
1 merge request!3Resolve "safe default for is_valid"
...@@ -425,7 +425,7 @@ scan_file() { ...@@ -425,7 +425,7 @@ scan_file() {
trap "" SIGINT trap "" SIGINT
debug "scan_file, === entering protected area ===" debug "scan_file, === entering protected area ==="
if [ "$STAGE" = "any" ]; then if [ "$STAGE" = "any" ]; then
is_valid=0 is_valid=1
for stage in upcoming current; do for stage in upcoming current; do
cmd=$(prepare_cmd "$MODE" "$ftype" "$stage" | sed -e "s#FILE#$filename#") cmd=$(prepare_cmd "$MODE" "$ftype" "$stage" | sed -e "s#FILE#$filename#")
is_valid=$(exec_cmd "$cmd" "$ftype" "$MODE" "$stage" "$logname") is_valid=$(exec_cmd "$cmd" "$ftype" "$MODE" "$stage" "$logname")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment