From 24f5767a01287004d77f8cbfbfb4533f95f02fa6 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 6 Dec 2021 22:58:03 -0500 Subject: [PATCH] =?utf8?q?Ajout=20v=C3=A9rification=20pr=C3=A9sence=20fich?= =?utf8?q?ier=20rc?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- gtx2tex.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtx2tex.pl b/gtx2tex.pl index f1b3e2a..9dd4373 100644 --- a/gtx2tex.pl +++ b/gtx2tex.pl @@ -55,7 +55,10 @@ $libpath="/usr/local/lib/guitartex"; # load configuration file $home=$ENV{"HOME"}; $verbose && print "home=$home\n"; -do "$home/.guitartexrc" or die "cannot load guitartex.conf"; +my $rcfile = "$home/.guitartexrc"; +if (-e $rcfile) { + do $rcfile or die "cannot load $rcfile"; +} $workdir = cwd; -- 2.20.1