projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into 3.x
[freeside.git]
/
bin
/
cdr-thinktel.import
diff --git
a/bin/cdr-thinktel.import
b/bin/cdr-thinktel.import
index
ccbd78c
..
9afd34c
100755
(executable)
--- a/
bin/cdr-thinktel.import
+++ b/
bin/cdr-thinktel.import
@@
-52,7
+52,8
@@
$ftp->login($login, $password)
warn "Retrieving directory listing\n" if $opt_v;
$ftp->cwd('/');
warn "Retrieving directory listing\n" if $opt_v;
$ftp->cwd('/');
-my @files = $ftp->ls();
+my @files = grep { $_ =~ /MetaSwitch/ } $ftp->ls();
+
warn scalar(@files)." CDR files found.\n" if $opt_v;
# apply date range
if ( $opt_a ) {
warn scalar(@files)." CDR files found.\n" if $opt_v;
# apply date range
if ( $opt_a ) {