From 7f7fb08833dd4a006adc45fe5deb9931f3aee94e Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 11 Jun 2002 18:32:07 +0000 Subject: [PATCH] don't export empty files --- bin/shell.export | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/shell.export b/bin/shell.export index 798bee3fe..146a0fd4e 100755 --- a/bin/shell.export +++ b/bin/shell.export @@ -54,6 +54,8 @@ foreach my $export ( @bsd_exports ) { grep { qsearch('cust_svc', { 'svcpart' => $_->svcpart } ) } $export->export_svc; + next unless @svc_acct; + foreach my $svc_acct ( sort { $a->uid <=> $b->uid } @svc_acct ) { my $password = $svc_acct->_password; -- 2.11.0