Skip to content

Commit

Permalink
handle case of no connectors found
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckwagoncomputing committed Jul 18, 2023
1 parent 5ae351d commit b374dea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ if [ "$DEBUG" = "true" ]; then
echo "Found YAMLs: $CONNECTORS"
fi
if [ $(echo -n "$CONNECTORS" | wc -l) -eq 0 ]; then
echo "No connectors found"
exit
fi
FILES=$(for f in $CONNECTORS; do
ORDER=$(yq e '.info.order' "$f")
echo "$f $ORDER"
Expand Down

0 comments on commit b374dea

Please sign in to comment.