Skip to content

Commit f04088e

Browse files
count connectors found properly
1 parent d23e8c0 commit f04088e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if [ "$DEBUG" = "true" ]; then
4444
echo "Found YAMLs: $CONNECTORS"
4545
fi
4646
47-
if [ $(echo -n "$CONNECTORS" | wc -l) -eq 0 ]; then
47+
if [ $(echo "$CONNECTORS" | grep -v ^$ | wc -l) -eq 0 ]; then
4848
handle_warning "$WARNING_NO_CONNECTORS" "WARNING: No connectors found"
4949
exit
5050
fi
@@ -172,4 +172,4 @@ find pinouts/ -type f -name 'index.html' -print0 | while IFS= read -r -d '' f; d
172172
fi
173173
done
174174
175-
echo "Completed processing $(echo "$CONNECTORS" | wc -l) mappings"
175+
echo "Completed processing $(echo "$CONNECTORS" | grep -v ^$ | wc -l) mappings"

0 commit comments

Comments
 (0)