Skip to content
Snippets Groups Projects
Commit 6cdc7645 authored by Jack Nagel's avatar Jack Nagel
Browse files

Only directories are candidates for superenv bin

parent 722a5af4
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ require 'extend/ENV/std'
require 'extend/ENV/super'
def superenv?
Superenv.bin && Superenv.bin.directory? && ARGV.env != "std"
Superenv.bin && ARGV.env != "std"
end
module EnvActivation
......
......@@ -40,7 +40,7 @@ module Superenv
end
def self.bin
@bin ||= (HOMEBREW_REPOSITORY/"Library/ENV").children.reject{|d| d.basename.to_s > MacOS::Xcode.version }.max
@bin ||= (HOMEBREW_REPOSITORY/"Library/ENV").subdirs.reject { |d| d.basename.to_s > MacOS::Xcode.version }.max
end
def reset
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment