Skip to content

Commit

Permalink
Fix #4
Browse files Browse the repository at this point in the history
  • Loading branch information
devnix authored Oct 24, 2016
1 parent a06f5fa commit eb8b877
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions dependency_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@
def check_plugins(dependencies)
skip_dependency_manager = false

opts = GetoptLong.new(
[ '--skip-dependency-manager', GetoptLong::OPTIONAL_ARGUMENT ]
)

opts.each do |opt, arg|
case opt
when '--skip-dependency-manager'
skip_dependency_manager = true
end
end
ARGV.each_with_index do |value, index|
case value
when '--skip-dependency-manager'
skip_dependency_manager = true
end
end

if ['up', 'reload'].include?(ARGV[0]) && !skip_dependency_manager
installed_dependencies = []
Expand Down

0 comments on commit eb8b877

Please sign in to comment.