From: Hugo Villeneuve Date: Tue, 7 Dec 2021 03:58:03 +0000 (-0500) Subject: Ajout vérification présence fichier rc X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=24f5767a01287004d77f8cbfbfb4533f95f02fa6;p=musique%2Fhvguitartex.git Ajout vérification présence fichier rc --- 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;