浏览代码

Fixes to 141 per review commentary

Andy Baugh 4 年之前
父节点
当前提交
1e5ec42d2f
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      bin/favicon_mongler.pl

+ 2 - 4
bin/favicon_mongler.pl

@@ -3,15 +3,13 @@
 use strict;
 use warnings;
 
-use lib 'lib';
-
 use Cwd            ();
 use File::Basename ();
+use File::Which    ();
 
 die "Usage:\n    favicon_mongler.pl /path/to/favicon.svg" unless $ARGV[0];
 my $icon = Cwd::abs_path($ARGV[0]);
-my $bin = `which inkscape`;
-chomp($bin);
+my $bin = File::Which::which('inkscape');
 die "Please install inkscape" if !$bin;
 my $dir  = File::Basename::dirname($icon) || die "Can't figure out dir from $icon";