diff --git a/scripts/publish.sh b/scripts/publish.sh index bc7f9d3f..d3f802c3 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -62,7 +62,7 @@ for member in "${MEMBERS[@]}"; do ( cd "${member}" actual=$(cargo pkgid | sed 's/.*#//') - if [[ "${actual}" != "${version}" ]]; then + if [[ "${actual}" != "${version}" ]] && [[ "${actual}" != *":${version}" ]]; then error "expected to release version ${version}, but ${member}/Cargo.toml contained ${actual}" exit 1 fi