summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerv%gerv.net <>2000-12-15 02:52:18 +0100
committergerv%gerv.net <>2000-12-15 02:52:18 +0100
commit12f144e4c5b129b126684a21b63fe3caf9da70fa (patch)
treea758086750c1539772fc63fad0209e95fdeaa6b4
parenta8df8cfd43eb8a2d2cfad07711b7d2e43ce875e1 (diff)
downloadbugzilla-12f144e4c5b129b126684a21b63fe3caf9da70fa.tar.gz
bugzilla-12f144e4c5b129b126684a21b63fe3caf9da70fa.tar.xz
Made deletion of graphs safer. Thanks to Joseph Heenan <joseph@picsel.com>
-rwxr-xr-xcollectstats.pl9
1 files changed, 5 insertions, 4 deletions
diff --git a/collectstats.pl b/collectstats.pl
index 9d813f63e..e2daa97f6 100755
--- a/collectstats.pl
+++ b/collectstats.pl
@@ -32,10 +32,11 @@ use vars @::legal_product;
require "globals.pl";
# tidy up after graphing module
-chdir("graphs");
-unlink <./*.gif>;
-unlink <./*.png>;
-chdir("..");
+if (chdir("graphs")) {
+ unlink <./*.gif>;
+ unlink <./*.png>;
+ chdir("..");
+}
ConnectToDatabase(1);
GetVersionTable();