Fail to generate pinout if there is no connector ID (#3950)
* check for id * check
This commit is contained in:
parent
286730f2a0
commit
4763340e5c
|
@ -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
|
||||
|
|
|
@ -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..."
|
||||
|
|
Loading…
Reference in New Issue