Path made user-independent

This commit is contained in:
Alexey Gerasimov 2017-11-13 11:05:20 +03:00
parent 3d4177a85f
commit a75f055915
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
$appName = File.basename(Dir['../*.xcworkspace'].first, '.*')
before_all do |lane, options|
podsReposPath = "/Users/builder/.cocoapods/repos/master/"
lockFilePath = "#{podsReposPath}.git/index.lock"
podsReposPath = File.expand_path "~/.cocoapods/repos/master/"
lockFilePath = "#{podsReposPath}/.git/index.lock"
# check if .lock file exists in pod repos - then remove all master repo
if File.exists? lockFilePath