Skip to content
Browse files

#52: quote paths in system calls

  • Loading branch information...
1 parent 36d05a5 commit d22be3af1d55f8e8c519004799f39ceba8115671 @cldwalker cldwalker committed with defunkt
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/rip/installer.rb
  2. +1 −1 lib/rip/packages/gem_package.rb
View
2 lib/rip/installer.rb
@@ -65,7 +65,7 @@ def run_install_hook(package)
Dir.chdir package.cache_path do
ui.puts "running install hook for #{package.name}"
- system "#{rakebin} -s rip:install >& /dev/null"
+ system "'#{rakebin}' -s rip:install >& /dev/null"
end
end
View
2 lib/rip/packages/gem_package.rb
@@ -32,7 +32,7 @@ def fetch!
end
def unpack!
- system "#{gembin} unpack #{cache_file} --target=#{packages_path} > /dev/null"
+ system "'#{gembin}' unpack '#{cache_file}' --target='#{packages_path}' > /dev/null"
end
memoize :metadata

0 comments on commit d22be3a

Please sign in to comment.
Something went wrong with that request. Please try again.