don't run empty shellcommands
authorivan <ivan>
Thu, 16 Jan 2003 02:58:22 +0000 (02:58 +0000)
committerivan <ivan>
Thu, 16 Jan 2003 02:58:22 +0000 (02:58 +0000)
FS/FS/part_export/shellcommands.pm

index dbd4017..f592a83 100644 (file)
@@ -33,6 +33,7 @@ sub _export_unsuspend {
 sub _export_command {
   my ( $self, $action, $svc_acct) = (shift, shift, shift);
   my $command = $self->option($action);
+  return '' if $command =~ /^\s*$/;
   my $stdin = $self->option($action."_stdin");
 
   no strict 'vars';