X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FInstallationCheck.pm;h=56ec690edc9e5a4313da84c606cc03b42e70602a;hb=5428f5f6d9dbced453dcfc113f683ceacee6380a;hp=ec2b719dc1aa712039cc5d921fd3fbd047cd938a;hpb=3720cd5e3b013e1b1af311179b383e9f61832baa;p=kivitendo-erp.git diff --git a/SL/InstallationCheck.pm b/SL/InstallationCheck.pm index ec2b719dc..56ec690ed 100644 --- a/SL/InstallationCheck.pm +++ b/SL/InstallationCheck.pm @@ -127,9 +127,9 @@ sub template_dirs { sub classes_from_latex { my ($path, $class) = @_; - eval { use String::ShellQuote; 1 } or warn "can't load String::ShellQuote" && return; - $path = shell_quote $path; - $class = shell_quote $class; + eval { require String::ShellQuote; 1 } or warn "can't load String::ShellQuote" && return; + $path = String::ShellQuote::shell_quote $path; + $class = String::ShellQuote::shell_quote $class; open my $pipe, q#egrep -rs '^[\ \t]*# . "$class' $path". q# | sed 's/ //g' | awk -F '{' '{print $2}' | awk -F '}' '{print $1}' |#; my @cls = <$pipe>;