Skip to content

Commit

Permalink
fix(script update_version): manage multireplace on same lign
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Leduc committed Aug 6, 2024
1 parent 8235ccd commit f5640da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/unixes/update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ then
echo "removed file $outFile"
elif [[ ! -f $outFile || "$force" == true ]]
then
sed 's/<version>/'$version'/' $i > $outFile
sed 's/<version>/'$version'/g' $i > $outFile
echo "generated file $outFile"
else
echo "no replacement of $outFile"
Expand All @@ -84,7 +84,7 @@ then
# Remove template extension
outFile=${template%.template}

sed 's/<version>/'$version'/' $template > $outFile
sed 's/<version>/'$version'/g' $template > $outFile
echo "generated file $outFile"
else
echo "error in template parameters: $template"
Expand Down

0 comments on commit f5640da

Please sign in to comment.