Fail to generate pinout if there is no connector ID (#3950)

* check for id

* check
This commit is contained in:
David Holdeman 2022-02-19 12:35:56 -06:00 committed by GitHub
parent 286730f2a0
commit 4763340e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,10 @@ for c in $CONNECTORS; do
NAME=$(basename $c .yaml)
echo "${I_AM} NAME "$NAME
mkdir -p $DIR
if [ "$(yqdir/yq e '.info.id' $c)" == "null" ]; then
echo "${I_AM} Missing id field in info section of $c"
exit 1
fi
if [ -f $DIR/index.html ]; then
bash misc/pinout-gen/append.sh "$(yqdir/yq -j e $c)" $DIR/index.html
else

View File

@ -1,6 +1,9 @@
#!/bin/bash
misc/actions/pinouts-create.sh
if [ $? -ne 0 ]; then
exit 1
fi
if [ -n "$RUSEFI_SSH_SERVER" ]; then
echo "Uploading Pinouts..."