diff --git a/overlay/opt/emcomm-tools/bin/et-uv-pro b/overlay/opt/emcomm-tools/bin/et-uv-pro index 0e24bf6..db15245 100755 --- a/overlay/opt/emcomm-tools/bin/et-uv-pro +++ b/overlay/opt/emcomm-tools/bin/et-uv-pro @@ -147,7 +147,7 @@ case $1 in p|pair) MAC=$(cat ${ACTIVE_RADIO} | jq -e -r .bluetooth.mac) - if [ $? -eq 0 ]; then + if [[ "{$MAC}" != "" ]]; then PAIR_STATUS=$(bluetoothctl info "${MAC}" | grep "Paired:" | awk '{print $2}') if [ "${PAIR_STATUS}" == "yes" ]; then echo "Device with MAC ${MAC} is already paired."