mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
Fix hardware tester when no devices available
This commit is contained in:
parent
ce1cbba7d5
commit
1cbfa5b42a
2 changed files with 14 additions and 4 deletions
|
@ -14,12 +14,16 @@ fi
|
|||
|
||||
. miracle-utils.sh
|
||||
|
||||
WIFI_NAMES=$(find_wireless_network_interfaces)
|
||||
WIFI_COUNT=$(echo "$WIFI_NAMES" | wc -l)
|
||||
WIFI_COUNT=0
|
||||
WIFI_NAMES="$(find_wireless_network_interfaces)"
|
||||
if [ -n "$WIFI_NAMES" ]
|
||||
then
|
||||
WIFI_COUNT=$(echo "$WIFI_NAMES" | wc -l)
|
||||
fi
|
||||
|
||||
if [ 0 = $WIFI_COUNT ]
|
||||
then
|
||||
echo There is no wireless devices avaliable
|
||||
echo There is no wireless devices available
|
||||
exit 1
|
||||
elif [ 1 = $WIFI_COUNT ]
|
||||
then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue