bin/docker-utils in docker-utils-0.1.11 vs bin/docker-utils in docker-utils-0.1.13
- old
+ new
@@ -9,8 +9,11 @@
if subcommand_path.file?
ARGV.shift
Kernel.exec subcommand_path.to_s, *ARGV
else
+ home_dir = ENV['HOME']
+ home_pat = /^#{home_dir}/
+ ENV['PATH'] = ENV['PATH'].split(':').delete_if{ |path| path =~ home_pat }.join(':')
docker_bin_path = `which docker`.chomp
Kernel.exec docker_bin_path, *ARGV
end