diff options
author | ivan <ivan> | 2002-06-11 18:32:07 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-06-11 18:32:07 +0000 |
commit | 7f7fb08833dd4a006adc45fe5deb9931f3aee94e (patch) | |
tree | 4f85cc2e785549bd5f27b146453f08ba0dabd7ba | |
parent | 76ce9aeaeb39f496797398e84bfdc20fbd817b4d (diff) |
don't export empty files
-rwxr-xr-x | bin/shell.export | 2 |
1 files changed, 2 insertions, 0 deletions
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; |