diff --git a/release.sh b/release.sh index bcb98908c..9d94ee1af 100755 --- a/release.sh +++ b/release.sh @@ -5,7 +5,6 @@ ## ## IMPORTANT: requires gh and git-extras commands installed -## Currently only runs on MacOS because of sed issue on lines 41 to 47 (see double quotes after -i) ## # TODO: verificar porque só pega versões superiores (3.1.200 ao invés de 3.1.200-RC9) @@ -44,14 +43,14 @@ function change_files { echo "Updating from "$OLD_VERSION" to "$FINAL_VERSION"" - sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" docker/docker-compose.yaml + sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" docker/docker-compose.yaml - sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" setup.py + sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" setup.py - sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/templates/base.html + sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/templates/base.html + + sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/settings.py - sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/settings.py - } function set_major_version {