File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,10 @@ function checkPlistVersions() {
109
109
PODSPEC_VERSION=` cat $project .podspec | grep -E " s.version\s+=" | cut -d ' "' -f 2`
110
110
ensureVersionEqual " $RXSWIFT_VERSION " " $PODSPEC_VERSION " " ${project} version not equal"
111
111
PLIST_VERSION=` defaults read " \` pwd\` /${project} /Info.plist" CFBundleShortVersionString`
112
- if [[ " ${PLIST_VERSION} " ! = " ${RXSWIFT_VERSION} " ]]; then
112
+ if [[ ${RXSWIFT_VERSION} = * " - " * && " ${PLIST_VERSION} - " * == " ${RXSWIFT_VERSION} " ]] || [[ ! ${RXSWIFT_VERSION} == * " - " * && " ${PLIST_VERSION} " = = " ${RXSWIFT_VERSION} " ]]; then
113
113
echo " Invalid version for ` pwd` /${project} /Info.plist: ${PLIST_VERSION} "
114
- defaults write " ` pwd` /${project} /Info.plist" CFBundleShortVersionString $RXSWIFT_VERSION
115
114
fi
116
115
done
117
-
118
- ensureNoGitChanges " Plist versions aren't correct"
119
116
}
120
117
121
118
ensureNoGitChanges " Please make sure the working tree is clean. Use \` git status\` to check."
You can’t perform that action at this time.
0 commit comments