X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Finstallation_check.pl;h=0f0dc202be12d2abb0e5281938ccb5cdb50b9232;hb=e0c425bf0dcac2eb02c817b6670b260e60035674;hp=3a81c85f895c498112575296e22ed3a80786e5aa;hpb=8024be0f4ce99c6062f8e1858ba991f271647cb7;p=kivitendo-erp.git 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);