summaryrefslogtreecommitdiff
path: root/auto/build
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-05-20 16:37:48 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2012-05-20 16:37:48 +0200
commitb2d2657bd25bccb45141384ff91198c232188e2f (patch)
tree5c5f5ed66e54113584c74ba343219de3adfb9a4d /auto/build
parent0c895957da9f6531305403955c55fc57793f8e53 (diff)
downloadkanotix-b2d2657bd25bccb45141384ff91198c232188e2f.zip
kanotix-b2d2657bd25bccb45141384ff91198c232188e2f.tar.gz
don't delete ISOs in tmpfs when building
Diffstat (limited to 'auto/build')
-rwxr-xr-xauto/build4
1 files 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