Commit 10352507 authored by Nolan Waite's avatar Nolan Waite

Better detect project given to `pod install`

parent daf72f5c
...@@ -22,7 +22,7 @@ module Pod ...@@ -22,7 +22,7 @@ module Pod
def initialize(argv) def initialize(argv)
config.clean = !argv.option('--no-clean') config.clean = !argv.option('--no-clean')
projpath = argv.shift_argument projpath = argv.shift_argument
projpath =~ /\.xcodeproj$/ ? @projpath = projpath : podspec = projpath projpath =~ /\.xcodeproj\/?$/ ? @projpath = projpath : podspec = projpath
@podspec = Pathname.new(podspec) if podspec @podspec = Pathname.new(podspec) if podspec
@projpath ||= argv.shift_argument @projpath ||= argv.shift_argument
super unless argv.empty? super unless argv.empty?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment