Permalink
Browse files

[Linter] Fix lint with local option.

  • Loading branch information...
fabiopelosin committed Oct 1, 2012
1 parent f7587b1 commit 74acb4015b8ed45321f012bfe8c4e90ba1bf25bb
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/cocoapods/command/linter.rb
@@ -122,15 +122,15 @@ def install_pod
def podfile_from_spec
name = spec.name
- podspec = file.realpath.to_s
+ podspec = file.realpath
platform = @platform
local = local?
podfile = Pod::Podfile.new do
platform(platform.to_sym, platform.deployment_target)
if (local)
- pod name, :local => '/Users/fabio/Desktop/RegexHighlightView'
+ pod name, :local => podspec.dirname.to_s
else
- pod name, :podspec => podspec
+ pod name, :podspec => podspec.to_s
end
end
podfile

0 comments on commit 74acb40

Please sign in to comment.