Skip to content

Commit 201486b

Browse files
committed
Call gzip with a relative path
There's no point in using which and then run that path.
1 parent 02357d3 commit 201486b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

install.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ def do_man(man, strip = 'man/')
8585
# Solaris does not support gzipped man pages. When called with
8686
# --no-check-prereqs/without facter the default gzip behavior still applies
8787
unless $osname == "Solaris"
88-
gzip = %x{which gzip}
89-
gzip.chomp!
90-
%x{#{gzip} --force --no-name #{omf}}
88+
%x{gzip --force --no-name #{omf}}
9189
end
9290
end
9391
end

0 commit comments

Comments
 (0)