projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e2b9a6
)
skip directories in all_conf
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 9 Oct 2010 12:28:01 +0000
(12:28 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 9 Oct 2010 12:28:01 +0000
(12:28 +0000)
lib/PXElator/client.pm
patch
|
blob
|
history
diff --git
a/lib/PXElator/client.pm
b/lib/PXElator/client.pm
index
7fc943d
..
89c3498
100644
(file)
--- a/
lib/PXElator/client.pm
+++ b/
lib/PXElator/client.pm
@@
-81,6
+81,7
@@
sub all_conf {
foreach my $file ( glob("$path/*"), glob("$path/*/*") ) {
my $name = $file;
$name =~ s{^$path/+}{} || die "can't remove $path from $name";
+ next if -d $file;
$conf->{ $name } =
-l $file ? readlink $file :
-f $file ? read_file $file :