From 661288cf55b78dac825c9bcc58972323f37a7e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Liard?= Date: Sat, 7 Mar 2015 18:44:21 +0100 Subject: [PATCH] Correct the sytem call with the "cd" command --- lib/GenerateBJP.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/GenerateBJP.pm b/lib/GenerateBJP.pm index 788f75e..e423fb7 100644 --- a/lib/GenerateBJP.pm +++ b/lib/GenerateBJP.pm @@ -108,13 +108,13 @@ sub displayBJP { system("rm", "-f", "$script_path/latex/bjp.pdf", "$script_path/latex/bjp.aux", "$script_path/latex/bjp.fls", "$script_path/latex/bjp.log", "$script_path/latex/bjp.fdb_latexmk"); print STDERR "-outdir=$script_path/latex"; - system("cd" "latex"); + system("cd latex"); system("latexmk", "-pdf", "-outdir=$script_path/latex", "latex/bjp.tex"); if ( $? == -1 ) { print STDERR "command failed: $!\n"; } - system("cd" ".."); + system("cd $script_path"); return "bjp.pdf"; }