From 895dbdbbd9498be29a35c6f2def61cb189cc39de Mon Sep 17 00:00:00 2001 From: LeandroJatai Date: Tue, 25 Jun 2024 10:18:20 -0300 Subject: [PATCH] fix: altera release.sh para rodar em shell ubuntu --- release.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 {