From 2dfcb8d6e5f35a92046f22b8afcf4c34ea2750dc Mon Sep 17 00:00:00 2001 From: "Filies Olaf (IFAG DES TOC PSA)" Date: Wed, 9 Oct 2024 18:48:19 +0200 Subject: [PATCH] Simplyfy yaml handling test --- .github/workflows/arduino_ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/arduino_ci.yml b/.github/workflows/arduino_ci.yml index 658b7d4..74c658f 100644 --- a/.github/workflows/arduino_ci.yml +++ b/.github/workflows/arduino_ci.yml @@ -312,8 +312,9 @@ jobs: export PORT=`./find_usb.sh $SERIAL_NUM` - device=$(echo $(./py_checkusb.py --serial ${SERIAL_NUM} --list devtype --json) | jq ".[0].\"${SERIAL_NUM}\"" --compact-output ) - + devicelist=$(echo $(./py_checkusb.py --serial ${SERIAL_NUM} --list devtype --json) | jq ".\"${SERIAL_NUM}\"" --compact-output ) + DEVICE=($echo $devicelist | jq -r '.[0]') + echo "Flash device: " $DEVICE # for device in "${devicelist[@]}"; do # export TYPE=${device[6]}