From b28fe8f8f87db28e0947e4a8299af4ca69178cb7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Fri, 14 Oct 2022 16:41:19 +0200
Subject: [PATCH] fix: check upcoming profiles/validators first

---
 validate_workflow.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/validate_workflow.sh b/validate_workflow.sh
index 2173870..5797e57 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 
-- 
GitLab