diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2012-05-20 16:37:48 +0200 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2012-05-20 16:37:48 +0200 |
commit | b2d2657bd25bccb45141384ff91198c232188e2f (patch) | |
tree | 5c5f5ed66e54113584c74ba343219de3adfb9a4d | |
parent | 0c895957da9f6531305403955c55fc57793f8e53 (diff) | |
download | kanotix-b2d2657bd25bccb45141384ff91198c232188e2f.zip kanotix-b2d2657bd25bccb45141384ff91198c232188e2f.tar.gz |
don't delete ISOs in tmpfs when building
-rwxr-xr-x | auto/build | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |