diff options
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-x | collectstats.pl | 9 |
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(); |