waitfor_xpds: handle the case of a failing AB
authorAslan Laoz <aslan.laoz@xorcom.com>
Tue, 14 Jan 2014 15:34:24 +0000 (15:34 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Fri, 7 Feb 2014 12:23:19 +0000 (14:23 +0200)
If an Astribank failed initialization, don't keep waiting for it.

xpp/waitfor_xpds

index f1fbd5e..bffa8c2 100755 (executable)
@@ -72,6 +72,10 @@ waitfor_ab_initialization() {
                fi
                test "$oldab" != "$ab"
        do
+               if [ "$ab" = '' ]; then
+                       echo >&2 "Astribanks disappeared"
+                       break
+               fi
                oldab="$ab"
                cat $ab
                #echo -n 1>&2 "_"