Skip to content

Commit

Permalink
allow for multi-line search path, add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckwagoncomputing committed Jul 18, 2023
1 parent 885ce9a commit 5ae351d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ handle_warning ()
}

# Sort all the yaml files by the order field they may contain.
CONNECTORS=$(find . -path "$MAPPING_PATH")
CONNECTORS=$(echo "$MAPPING_PATH" | while read p; do find . -path "./$p"; done)
if [ "$DEBUG" = "true" ]; then
echo "Search Path: $MAPPING_PATH"
echo "Found YAMLs: $CONNECTORS"
fi
FILES=$(for f in $CONNECTORS; do
ORDER=$(yq e '.info.order' "$f")
echo "$f $ORDER"
Expand Down

0 comments on commit 5ae351d

Please sign in to comment.