From 3b78907b7fa468b1daa9c58b8b36651ec7d9c79e Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Mon, 25 Oct 2010 03:33:59 +0200 Subject: Stop the continuous run if the list completed. Before it entered an infinite restart loop. --- tinderbox-continuous.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tinderbox-continuous.sh b/tinderbox-continuous.sh index 19f0d22..158d5c0 100755 --- a/tinderbox-continuous.sh +++ b/tinderbox-continuous.sh @@ -28,6 +28,8 @@ until [ -f /var/run/tinderbox.pleasestop ]; do cp ${list} ${list}~ cat ${list}~ /var/cache/tinderbox/myrunlist | sort | uniq -u > ${list} + [ -s /var/cache/tinderbox/myrunlist ] || break + xargs -a /var/cache/tinderbox/myrunlist -n1 ${tboxdir}/emerge-wrapper.sh # before restarting, copy the current run's mask into the session -- cgit v1.2.3-65-gdbad