projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
139d042
)
warn about files in ip/ dir
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 13 Sep 2010 18:26:05 +0000
(18:26 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 13 Sep 2010 18:26:05 +0000
(18:26 +0000)
lib/PXElator/client.pm
patch
|
blob
|
history
diff --git
a/lib/PXElator/client.pm
b/lib/PXElator/client.pm
index
066867c
..
7fc943d
100644
(file)
--- a/
lib/PXElator/client.pm
+++ b/
lib/PXElator/client.pm
@@
-50,7
+50,8
@@
sub conf {
}
my $path = ip_path $ip;
- mkdir $path unless -d $path;
+ mkdir $path unless -e $path;
+ warn "WARNING: $path not directory" unless -d $path;
$path .= '/' . $name;
if ( defined $value ) {