chore: fix shellcheck findings across migration scripts
This commit is contained in:
@@ -61,7 +61,7 @@ done < "$RUNNERS_CONF"
|
||||
# ---------------------------------------------------------------------------
|
||||
# Check: runner count matches runners.conf
|
||||
# ---------------------------------------------------------------------------
|
||||
EXPECTED_COUNT=$(grep -v '^\s*#' "$RUNNERS_CONF" | grep -v '^\s*$' | wc -l | xargs)
|
||||
EXPECTED_COUNT=$(grep -Evc '^[[:space:]]*($|#)' "$RUNNERS_CONF")
|
||||
ACTUAL_COUNT=$(printf '%s' "$API_RUNNERS" | jq 'length' 2>/dev/null || echo 0)
|
||||
|
||||
if [[ "$ACTUAL_COUNT" -ge "$EXPECTED_COUNT" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user