aboutsummaryrefslogtreecommitdiffstats
path: root/clean_files
diff options
context:
space:
mode:
Diffstat (limited to 'clean_files')
-rwxr-xr-xclean_files3
1 files changed, 3 insertions, 0 deletions
diff --git a/clean_files b/clean_files
index f0ae5e8..9955454 100755
--- a/clean_files
+++ b/clean_files
@@ -10,7 +10,10 @@
#---------------------------------------------------------------
################################################################################
+$ENV{DONT_CLEANUP} and exit(0);
+
my $RPM_BUILD_ROOT = $ENV{RPM_BUILD_ROOT};
+$RPM_BUILD_ROOT or exit(0); # case RPM_BUILD_ROOT is not used
chdir($RPM_BUILD_ROOT) or die "Can't cd to $ENV{RPM_BUILD_ROOT}: $!";
system(split(/\s+/, "find . -type f -a