don't run empty shellcommands
[freeside.git] / 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';