X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/1d6dec40ebde1afa81aec05a68dc5649782c4b1f..4b3e187b98c1682b33a82f14207470f6846958b8:/ikiwiki-comment.in diff --git a/ikiwiki-comment.in b/ikiwiki-comment.in index 0891766ab..174647b06 100755 --- a/ikiwiki-comment.in +++ b/ikiwiki-comment.in @@ -1,7 +1,8 @@ #!/usr/bin/perl +no lib '.'; use warnings; use strict; -use lib '.'; # For use in nonstandard directory, munged by Makefile. +use FindBin; use lib $FindBin::Bin; # For use in nonstandard directory, munged by Makefile. use IkiWiki; use IkiWiki::Plugin::comments; use Getopt::Long; @@ -115,7 +116,7 @@ sub exec_editor { @editor=split(' ', $ENV{EDITOR}); } if (exists $ENV{VISUAL}) { - @editor=split(' ', $ENV{VISUAL}); + @editor=split(' ', $ENV{VISUAL}); } exec(@editor, $file); }