Merge pull request #532 from hexadecagram/master
Allow postscript to take args
This commit is contained in:
commit
a1e68a5b21
1 changed files with 2 additions and 1 deletions
|
@ -1209,9 +1209,10 @@ sub main {
|
|||
|
||||
sub runpostscript {
|
||||
my ($ip) = @_;
|
||||
my @postscript = split(/\s+/, $globals{postscript});
|
||||
|
||||
if (defined $globals{postscript}) {
|
||||
if (-x $globals{postscript}) {
|
||||
if (-x $postscript[0]) {
|
||||
system("$globals{postscript} $ip &");
|
||||
} else {
|
||||
warning("Can not execute post script: %s", $globals{postscript});
|
||||
|
|
Loading…
Reference in a new issue