Improves validate Podspecs scheme.

This commit is contained in:
Krunoslav Zaher 2015-11-02 11:13:09 +01:00
parent 31095a8cb0
commit 0b8bf6ca5a

View File

@ -3,6 +3,15 @@
set -e
function cleanup {
pushd ~/.cocoapods/repos/master
git clean -d -f
git reset master --hard
popd
}
trap cleanup EXIT
VERSION=`cat RxSwift.podspec | grep -E "s.version\s+=" | cut -d '"' -f 2`
pushd ~/.cocoapods/repos/master
@ -27,8 +36,3 @@ sed -E "s/s.source[^\}]+\}/s.source = { :git => '\/Users\/kzaher\/Proj
pod lib lint RxSwift.podspec
pod lib lint RxCocoa.podspec
pod lib lint RxBlocking.podspec
pushd ~/.cocoapods/repos/master
git clean -d -f
git reset master --hard
popd