fix device counting
This commit is contained in:
parent
42fec11080
commit
d32b682239
@ -40,7 +40,10 @@ get_speeds() {
|
|||||||
get_devices() {
|
get_devices() {
|
||||||
echo -e "\n${SELF}: Running: $RELENG_XORRISO -devices 2>/dev/null | grep \"\-dev\""
|
echo -e "\n${SELF}: Running: $RELENG_XORRISO -devices 2>/dev/null | grep \"\-dev\""
|
||||||
DEVICES=`$RELENG_XORRISO -devices 2>/dev/null | grep "\-dev"`
|
DEVICES=`$RELENG_XORRISO -devices 2>/dev/null | grep "\-dev"`
|
||||||
NUM_DEV=`echo ${DEVICES} | wc -l`
|
NUM_DEV=`(cat <<+
|
||||||
|
${DEVICES}
|
||||||
|
+
|
||||||
|
) | wc -l`
|
||||||
|
|
||||||
case "${NUM_DEV}" in
|
case "${NUM_DEV}" in
|
||||||
0)
|
0)
|
||||||
|
Loading…
Reference in New Issue
Block a user