don't try to run blank commands for non-svc_acct shellcommand exports too
[freeside.git] / FS / FS / part_export / forward_shellcommands.pm
index fe30435..fd1b7ef 100644 (file)
@@ -68,6 +68,7 @@ sub _export_delete {
 sub _export_command {
   my ( $self, $action, $svc_forward ) = (shift, shift, shift);
   my $command = $self->option($action);
+  return '' if $command =~ /^\s*$/;
 
   #set variable for the command
   no strict 'vars';