From 38cedbb38bb3e258010112ed96db8e783fa09e26 Mon Sep 17 00:00:00 2001 From: joaohortsenado <100957576+joaohortsenado@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:25:13 -0300 Subject: [PATCH] =?UTF-8?q?Altera=20mudan=C3=A7a=20que=20causou=20incompat?= =?UTF-8?q?ibilidade=20com=20macOS=20(#3724)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: altera mudanca que causou imcompatibilidade com macos --- release.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/release.sh b/release.sh index 9d94ee1af..3ee43b85a 100755 --- a/release.sh +++ b/release.sh @@ -43,14 +43,19 @@ function change_files { echo "Updating from "$OLD_VERSION" to "$FINAL_VERSION"" - sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" docker/docker-compose.yaml - - sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" setup.py - - 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 - + if [[ "$OSTYPE" == "darwin"* ]]; then + # MacOS (BSD sed) + sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" docker/docker-compose.yaml + sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" setup.py + sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/templates/base.html + sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/settings.py + else + # Linux (GNU sed) + sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" docker/docker-compose.yaml + sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" setup.py + 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 + fi } function set_major_version {