bin/micro-install in micro_install-0.1.8 vs bin/micro-install in micro_install-0.4.0
- old
+ new
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
-require 'unirest'
+require 'httparty'
require 'os'
require 'rubygems/package'
require 'open-uri'
require 'zlib'
require 'micro_install'
@@ -28,10 +28,10 @@
paths = []
path_env = ENV['PATH'].split(':').each do |path|
paths << path if path.include? 'bin'
end
-if paths.include? Pathname(Dir.home).join('.local/bin').to_path
+if paths.include? Pathname(Dir.home).join('.local/bin/').to_path or paths.include? Pathname(Dir.home).join('.local/bin').to_path
hl.say "Environment Variable 'PATH' already includes #{Dir.home}/.local/bin"
hl.say Paint["You're all set!", 'green']
installer.is_installed
else
hl.say "#{Paint['Warning', 'orange']}: #{Dir.home}/.local/bin is not in $PATH,"
\ No newline at end of file