From 4c577f990cb5ac6c6fc58a4334a3e12d9d285ce1 Mon Sep 17 00:00:00 2001 From: Nico <59510296+n1c093@users.noreply.github.com> Date: Mon, 27 May 2024 09:36:17 +0000 Subject: [PATCH] fix: change version replacement to sed to stay pretty --- scripts/prepare-release.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/prepare-release.sh b/scripts/prepare-release.sh index 57a0d09..8a8c5d5 100755 --- a/scripts/prepare-release.sh +++ b/scripts/prepare-release.sh @@ -1,8 +1,7 @@ #!/bin/bash -cd custom_components/divera -cp manifest.json manifest.json.tmp -jq --arg version $1 '.version=$version' manifest.json.tmp > manifest.json -rm manifest.json.tmp +VERSION=$1 +cd custom_components/divera +sed -i "s/0.0.0/${VERSION}/g" manifest.json zip divera.zip -r ./