aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/run-automated-builder
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-02 17:13:23 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-02 17:13:23 +0000
commit4be7c53dc96f126e433695f296ac694161eb3301 (patch)
tree81887f2036c211eb7907616215e72c745b821977 /scripts/auto-build/run-automated-builder
parenteae8898513e6a5bbb64a9a7e3473485aef7cdee4 (diff)
stopped double-builds by testing for a chroot dir before trying to build from them
svn path=/trunk/; revision=11615
Diffstat (limited to 'scripts/auto-build/run-automated-builder')
-rwxr-xr-xscripts/auto-build/run-automated-builder12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/auto-build/run-automated-builder b/scripts/auto-build/run-automated-builder
index 8d10196f..e6499bf7 100755
--- a/scripts/auto-build/run-automated-builder
+++ b/scripts/auto-build/run-automated-builder
@@ -72,11 +72,13 @@ for distrodir in ${HOME}/auto-build/*; do
distro=$(echo $distrodir | sed 's|.*/\(.*\)|\1|')
if [ -e $distrodir/scripts/auto-build/${distro}-auto-builder.sh ]; then
run_build_script $distro IGNORE_CHROOT_USE_SYSTEM
- for chrootdir in /var/chroot/*; do
- chroot=$(echo $chrootdir | sed 's|.*/\(.*\)|\1|')
- HOSTNAME=`cat /etc/hostname`
- run_build_script $distro $chroot
- done
+ if [ -e /var/chroot ]; then
+ for chrootdir in /var/chroot/*; do
+ chroot=$(echo $chrootdir | sed 's|.*/\(.*\)|\1|')
+ HOSTNAME=`cat /etc/hostname`
+ run_build_script $distro $chroot
+ done
+ fi
fi
done