lib/eat.rb in eat-0.0.3 vs lib/eat.rb in eat-0.0.4
- old
+ new
@@ -20,10 +20,10 @@
case uri.scheme
when nil
if ::File.readable? uri.path
::IO.read uri.path
else
- `sudo cat #{uri.path}`
+ `sudo /bin/cat #{uri.path}`
end
when 'http', 'https'
require 'net/http'
require 'net/https' if uri.scheme == 'https'
(defined?(::SystemTimer) ? ::SystemTimer : ::Timeout).timeout(::Eat.config.remote_timeout) do