diff options
-rwxr-xr-x | bin/4a-play | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/4a-play b/bin/4a-play index 7650d4d..f54fba7 100755 --- a/bin/4a-play +++ b/bin/4a-play @@ -43,7 +43,7 @@ fi if [ "$IS_4A_DEVICE" == "1" ]; then log "The selected card (hw:$CARDID) is handle by 4a, call open on '$ROLE'" - 4a-client ahl-4a "$ROLE" '{ "action": "open" }' + DEVICE=$(4a-client ahl-4a "$ROLE" '{ "action": "open" }' | tail -n +2 | jq '.response.device_uri') # BUG: afb-client-demo does not exit an exit code different from zero when api return an error #if [ "$?" -ne "0" ]; then |