]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/InstallationCheck.pm
Projekte im Warenbericht
[kivitendo-erp.git] / SL / InstallationCheck.pm
index 70d6217db5ee0cc220ab268d23ba8a115f5e0ef0..e8670761c918f8354ee8862ceebc77471f536b95 100644 (file)
@@ -71,6 +71,10 @@ 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;
+
   open my $pipe, q#egrep -rs '^[\ \t]*# . "$class' $path". q# | sed 's/ //g' | awk -F '{' '{print $2}' | awk -F '}' '{print $1}' |#;
   my @cls = <$pipe>;
   close $pipe;