aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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