summaryrefslogtreecommitdiffstats
path: root/collectstats.pl
diff options
context:
space:
mode:
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-xcollectstats.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectstats.pl b/collectstats.pl
index 61e7cf204..5af4f45c3 100755
--- a/collectstats.pl
+++ b/collectstats.pl
@@ -73,7 +73,7 @@ if (-s "data/duplicates.tmp") {
sub check_data_dir {
my $dir = shift;
- if (! -d) {
+ if (! -d $dir) {
mkdir $dir, 0777;
chmod 0777, $dir;
}