Skip to content

Commit 3f898d7

Browse files
committed
Fixing version placement command
- for some reason 'sed' didn't work well on alpine, but works on debian/ubuntu, fedora/redhat, OL - replacing 'sed' with 'echo'
1 parent c3be52e commit 3f898d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ new_version=$(docker run --rm marcelocorreia/semver semver -c -i patch ${current
2020
echo "Current version: $current_version"
2121
echo "New version: $new_version"
2222

23-
sed -i '' -e 's/'"$current_version"'/'"$new_version"'/g' fdk/version.py
23+
echo "VERSION = '${new_version}'" > fdk/version.py
2424

2525
PBR_VERSION=${new_version} python setup.py sdist bdist_wheel
2626
twine upload -u ${FN_PYPI_USER} -p ${FN_PYPI_PSWD} dist/fdk-${new_version}*

0 commit comments

Comments
 (0)