From b2d2657bd25bccb45141384ff91198c232188e2f Mon Sep 17 00:00:00 2001
From: Andreas Loibl <andreas@andreas-loibl.de>
Date: Sun, 20 May 2012 16:37:48 +0200
Subject: don't delete ISOs in tmpfs when building

---
 auto/build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/auto/build b/auto/build
index 1d16389..22da40e 100755
--- a/auto/build
+++ b/auto/build
@@ -62,8 +62,8 @@ if [ "$LB_KANOTIX_TMPFS" = "true" ]; then
        # build using tmpfs
        [ -z "$(stat --printf "%d\n" . tmpfs | uniq -u)" ] && mount -t tmpfs -o "$LB_KANOTIX_TMPFS_OPTIONS" tmpfs tmpfs
        cd tmpfs
-       # delete everything except cache
-       find . -maxdepth 1 ! -name cache -exec rm -r '{}' \; 2>/dev/null
+       # delete everything except cache and *.iso
+       find . -maxdepth 1 ! -name cache ! -name '*.iso' -exec rm -r '{}' \; 2>/dev/null
        # copy everything to tmpfs
        rsync -a .. . --exclude=tmpfs --exclude '*.iso'
        # build
-- 
cgit v1.0