We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1fc1ba commit 2df1064Copy full SHA for 2df1064
1 file changed
lib/oscli.rb
@@ -46,7 +46,10 @@ def execute
46
if !targetname
47
targetname = entrypoint
48
end
49
- dir = entrypoint.slice(0, entrypoint.rindex('/')) # => "/path/to"
+ dir = ''
50
+ if entrypoint.include? '/'
51
+ dir = entrypoint.slice(0, entrypoint.rindex('/')) # => "/path/to"
52
+ end
53
path = Dir.pwd + '/' + dir
54
ios_proj = OSProject::IOS.new(path, targetname, language, appid)
55
xcodeproj_path = Dir.pwd + '/' + entrypoint + '.xcodeproj'
0 commit comments