unknown command "r" for "yq" drama with pinout #2880

This commit is contained in:
Andrey 2021-06-30 10:08:19 -04:00
parent 0c5f4f5179
commit e40ff8cf5b
1 changed files with 3 additions and 3 deletions

View File

@ -16,12 +16,12 @@ for c in $CONNECTORS; do
echo "NAME "$NAME
mkdir -p $DIR
if [ -f $DIR/index.html ]; then
bash misc/pinout-gen/append.sh "$(yq -j r $c)" $DIR/index.html
bash misc/pinout-gen/append.sh "$(yq -j e $c)" $DIR/index.html
else
bash misc/pinout-gen/gen.sh "$(yq -j r $c)" $DIR/index.html
bash misc/pinout-gen/gen.sh "$(yq -j e $c)" $DIR/index.html
fi
file $DIR/index.html
IMG=$(yq r $c 'info.image.file')
IMG=$(yq e '.info.image.file' $c)
if [ $? -ne 0 ]; then
exit 1;
fi