summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorivan <ivan>2002-06-11 18:32:07 +0000
committerivan <ivan>2002-06-11 18:32:07 +0000
commit7f7fb08833dd4a006adc45fe5deb9931f3aee94e (patch)
tree4f85cc2e785549bd5f27b146453f08ba0dabd7ba /bin
parent76ce9aeaeb39f496797398e84bfdc20fbd817b4d (diff)
don't export empty files
Diffstat (limited to 'bin')
-rwxr-xr-xbin/shell.export2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/shell.export b/bin/shell.export
index 798bee3..146a0fd 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;