aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-03-15 12:12:43 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-03-15 12:12:43 +0200
commit32ad59e0a9c7f74c7c094d5091bce435c145fe33 (patch)
treefd16d21eaaed41b3b6c58e8db4d36be854022af1 /lib
parent66972a8ed32f71ad5ef46bb54e443aa6d99b2723 (diff)
downloadacmeman-32ad59e0a9c7f74c7c094d5091bce435c145fe33.tar.gz
acmeman-32ad59e0a9c7f74c7c094d5091bce435c145fe33.tar.bz2
Multiple 'source' configuration statements.v1.10
* Changes: Version 1.10 * MANIFEST.SKIP: Update. * acmeman: Treat 'source' as multiple keyword. * lib/App/Acmeman/Source/File.pm (new): Append /* only to directory names.
Diffstat (limited to 'lib')
-rw-r--r--lib/App/Acmeman/Source/File.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/App/Acmeman/Source/File.pm b/lib/App/Acmeman/Source/File.pm
index 48a4010..0d6859d 100644
--- a/lib/App/Acmeman/Source/File.pm
+++ b/lib/App/Acmeman/Source/File.pm
@@ -17,7 +17,9 @@ sub new {
'host|h=s' => \$host);
unless ($pattern =~ m{[][*?]}) {
$pattern =~ s{/$}{};
- $pattern = File::Spec->catfile($pattern, '*');
+ if (-d $pattern) {
+ $pattern = File::Spec->catfile($pattern, '*');
+ }
}
bless { pattern => $pattern,
ignore => $ignore,

Return to:

Send suggestions and report system problems to the System administrator.