]> dxcluster.org Git - spider.git/commitdiff
make save a non-spawnable cmd
authorDirk Koopman <djk@tobit.co.uk>
Fri, 17 Apr 2020 00:32:27 +0000 (01:32 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Fri, 17 Apr 2020 00:32:27 +0000 (01:32 +0100)
cmd/save.pl

index bf24000ea44d96d579089834922d3ec8ef6923bc..dce7b49cd5bb75b2662d215a3f1dfcb3216c6d16 100644 (file)
@@ -44,7 +44,9 @@ if ($rest =~ /^\s*\"/) {
 }
 open OF, "$app_req$fn" or return (1, $self->msg('e30', $fn));
 for (@cmd) {
+       $self->{_nospawn} = 1;
        print OF map {"$_\n"} $self->run_cmd($_);
+       delete $self->{_nospawn};
 }
 close OF;
 return (1, $self->msg('ok'));