From 0eb77e626ef5d71804825d7701432ec6d68c5e6e Mon Sep 17 00:00:00 2001 From: Oron Peled Date: Tue, 28 Oct 2014 11:53:29 -0400 Subject: [PATCH] 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 --- xpp/waitfor_xpds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpp/waitfor_xpds b/xpp/waitfor_xpds index 79e2806..8a46a1d 100755 --- a/xpp/waitfor_xpds +++ b/xpp/waitfor_xpds @@ -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"