xpp: waitfor_xpds: expansion error with no ABs

Fix an exansion error in case there were no Astribanks on the system.

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
(cherry picked from commit 0eb77e626e)
This commit is contained in:
Oron Peled
2014-10-28 11:53:29 -04:00
committed by Russ Meyerriecks
parent 93f85f7e6f
commit 0ae73f0497

View File

@@ -52,7 +52,7 @@ ab_serial_nums() {
}
detected_serial_nums() {
for i in /sys/bus/astribanks/devices/*/transport; do
for i in `ls -1d /sys/bus/astribanks/devices/*/transport 2>/dev/null`; do
s=`cat "$i/serial" 2>/dev/null` || :
if [ "$s" = '' ]; then
echo "NO-SERIAL"