From f5640dafc61607b9a926eff7800d3fda64709b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Leduc?= Date: Tue, 6 Aug 2024 10:43:40 +0200 Subject: [PATCH] fix(script update_version): manage multireplace on same lign --- scripts/unixes/update_version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/unixes/update_version.sh b/scripts/unixes/update_version.sh index 03953e3..6262ad5 100755 --- a/scripts/unixes/update_version.sh +++ b/scripts/unixes/update_version.sh @@ -73,7 +73,7 @@ then echo "removed file $outFile" elif [[ ! -f $outFile || "$force" == true ]] then - sed 's//'$version'/' $i > $outFile + sed 's//'$version'/g' $i > $outFile echo "generated file $outFile" else echo "no replacement of $outFile" @@ -84,7 +84,7 @@ then # Remove template extension outFile=${template%.template} - sed 's//'$version'/' $template > $outFile + sed 's//'$version'/g' $template > $outFile echo "generated file $outFile" else echo "error in template parameters: $template"