#!/bin/bash -ex
for ID in REDACTED; do
OUTPUT=$(echo "lsusb; exit;" | balena device ssh -t $ID main)
echo "Response: $OUTPUT"
done
Results in:
+ for ID in REDACTED
++ echo 'lsusb; exit;'
++ balena device ssh -t ID main
+ OUTPUT=
+ echo 'Response: '
Response:
How do you actually get output to show that the script worked?