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>
This commit is contained in:
Oron Peled 2014-10-28 11:53:29 -04:00 committed by Tzafrir Cohen
parent 2e1c15baa3
commit 0eb77e626e
1 changed files with 1 additions and 1 deletions

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"