X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8024be0f4ce99c6062f8e1858ba991f271647cb7..968894aa36a9c5c5bcfdb972ce6d78d8dea19fcb:/scripts/installation_check.pl diff --git a/scripts/installation_check.pl b/scripts/installation_check.pl index 3a81c85f8..0f0dc202b 100755 --- a/scripts/installation_check.pl +++ b/scripts/installation_check.pl @@ -95,7 +95,12 @@ sub kpsewhich { $package =~ s/[^-_0-9A-Za-z]//g; my $type_desc = $type eq 'cls' ? 'document class' : 'package'; - my $exit = system(qq|TEXINPUTS=".:$dw:" kpsewhich $package.$type > /dev/null|); + eval { use String::ShellQuote; 1 } or warn "can't load String::ShellQuote" && return; + $dw = shell_quote $dw; + my $e_package = shell_quote $package; + my $e_type = shell_quote $type; + + my $exit = system(qq|TEXINPUTS=".:$dw:" kpsewhich $e_package.$e_type > /dev/null|); my $res = $exit > 0 ? 0 : 1; print_result("Looking for LaTeX $type_desc $package", $res);