Skip to content

Commit 2df1064

Browse files
committed
fixing crash when calling install for iOS projects from the project base dir
1 parent c1fc1ba commit 2df1064

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/oscli.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ def execute
4646
if !targetname
4747
targetname = entrypoint
4848
end
49-
dir = entrypoint.slice(0, entrypoint.rindex('/')) # => "/path/to"
49+
dir = ''
50+
if entrypoint.include? '/'
51+
dir = entrypoint.slice(0, entrypoint.rindex('/')) # => "/path/to"
52+
end
5053
path = Dir.pwd + '/' + dir
5154
ios_proj = OSProject::IOS.new(path, targetname, language, appid)
5255
xcodeproj_path = Dir.pwd + '/' + entrypoint + '.xcodeproj'

0 commit comments

Comments
 (0)