summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2003-01-16 02:58:20 +0000
committerivan <ivan>2003-01-16 02:58:20 +0000
commitf948765436a567af2ca2f5b8c7f675a49cf63ef5 (patch)
treec81f9caaf792832f9bb519a49aaeca5a407bb541
parentd311117b3f2e7476642e25494156dbde746fcdf8 (diff)
don't run empty shellcommands
-rw-r--r--FS/FS/part_export/shellcommands.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/part_export/shellcommands.pm b/FS/FS/part_export/shellcommands.pm
index dbd4017f8..f592a838a 100644
--- a/FS/FS/part_export/shellcommands.pm
+++ b/FS/FS/part_export/shellcommands.pm
@@ -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';