changeset 1035:a3716680a825

NO_CLEANUP should prevent blank_tempdir from deleting stuff.
author Rob Landley <rob@landley.net>
date Mon, 12 Apr 2010 00:02:32 -0500
parents 27c38c82401d
children e021bba5e22e
files sources/utility_functions.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/utility_functions.sh	Sun Apr 11 15:21:00 2010 -0500
+++ b/sources/utility_functions.sh	Mon Apr 12 00:02:32 2010 -0500
@@ -18,7 +18,7 @@
   touch -c "$1" || dienow
 
   # Delete old directory, create new one.
-  rm -rf "$1"
+  [ -z "$NO_CLEANUP" ] && rm -rf "$1"
   mkdir -p "$1" || dienow
 }