projects
/
musique
/
hvguitartex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0b19f0
)
Ajout vérification présence fichier rc
author
Hugo Villeneuve
<hugo@hugovil.com>
Tue, 7 Dec 2021 03:58:03 +0000
(22:58 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Wed, 9 Mar 2022 22:14:43 +0000
(17:14 -0500)
gtx2tex.pl
patch
|
blob
|
history
diff --git
a/gtx2tex.pl
b/gtx2tex.pl
index
f1b3e2a
..
9dd4373
100644
(file)
--- 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;