Merge pull request #532 from hexadecagram/master

Allow postscript to take args
This commit is contained in:
Sandro 2023-04-05 11:19:12 +02:00 committed by GitHub
commit a1e68a5b21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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});