summaryrefslogtreecommitdiff
path: root/test/get-dropboxes
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-09-29 01:17:03 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2015-09-29 01:17:03 (GMT)
commit15db57fb8eb839f48763394f73709a1d5952131b (patch)
tree81c6cfe7c262d088e8fc69e0158f88fde3a7bd81 /test/get-dropboxes
parent59bd1cedd11b6337259578cc15319da5d52e6d22 (diff)
added type filter for list dropboxes
Diffstat (limited to 'test/get-dropboxes')
-rwxr-xr-xtest/get-dropboxes5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/get-dropboxes b/test/get-dropboxes
index abff8d9..b8a5266 100755
--- a/test/get-dropboxes
+++ b/test/get-dropboxes
@@ -28,11 +28,14 @@ use RHRD::rddb;
my $username = $ARGV[0];
my $groupname = $ARGV[1];
+$groupname = undef if (defined($groupname) && $groupname eq '');
+my $type = $ARGV[2];
+
my @dropboxes = ();
my ($dbh, $status, $errorstring) = RHRD::rddb::opendb();
if(defined $dbh) {
- @dropboxes = RHRD::rddb::get_dropboxes($dbh, $username, $groupname);
+ @dropboxes = RHRD::rddb::get_dropboxes($dbh, $username, $groupname, $type);
if(!defined $dropboxes[0] && defined $dropboxes[1]) {
print STDERR "$dropboxes[1]: $dropboxes[2]";
RHRD::rddb::closedb($dbh);