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:
parent
2e1c15baa3
commit
0eb77e626e
@ -52,7 +52,7 @@ ab_serial_nums() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
detected_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` || :
|
s=`cat "$i/serial" 2>/dev/null` || :
|
||||||
if [ "$s" = '' ]; then
|
if [ "$s" = '' ]; then
|
||||||
echo "NO-SERIAL"
|
echo "NO-SERIAL"
|
||||||
|
Loading…
Reference in New Issue
Block a user