summaryrefslogtreecommitdiff
path: root/FS/FS/part_export/www_shellcommands.pm
diff options
context:
space:
mode:
authorivan <ivan>2005-08-03 02:23:22 +0000
committerivan <ivan>2005-08-03 02:23:22 +0000
commit289e35fa98f95021ccda7830146c6c9742302f70 (patch)
treee02cbb823f0ecb3c53ffecdcaec693c450e28e2c /FS/FS/part_export/www_shellcommands.pm
parentf9520d436146a4f5f75c104f887f020fa778e509 (diff)
don't try to run blank commands for non-svc_acct shellcommand exports too
Diffstat (limited to 'FS/FS/part_export/www_shellcommands.pm')
-rw-r--r--FS/FS/part_export/www_shellcommands.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/part_export/www_shellcommands.pm b/FS/FS/part_export/www_shellcommands.pm
index 0e50d60..9d3564e 100644
--- a/FS/FS/part_export/www_shellcommands.pm
+++ b/FS/FS/part_export/www_shellcommands.pm
@@ -80,6 +80,7 @@ sub _export_delete {
sub _export_command {
my ( $self, $action, $svc_www) = (shift, shift, shift);
my $command = $self->option($action);
+ return '' if $command =~ /^\s*$/;
#set variable for the command
no strict 'vars';