Skip to content

Commit

Permalink
Fixing update_version for mac and Linux.
Browse files Browse the repository at this point in the history
Getting sed -i to work on both Linux and Mac is challenging.
  • Loading branch information
bneradt authored and bneradt committed Jan 26, 2021
1 parent a92cadd commit d55d019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ old_version=$(\

# Go back: the file paths are relative to the user's current working directory.
cd - 2>&1 > /dev/null
sed -i='' "s/${old_version}/${new_version}/g" "${parts_file}"
sed -i='' "s/${old_version}/${new_version}/g" "${src_file}"
sed -i'.bak' "s/${old_version}/${new_version}/g" "${parts_file}" && rm "${parts_file}.bak"
sed -i'.bak' "s/${old_version}/${new_version}/g" "${src_file}" && rm "${src_file}.bak"

echo "Do not forget to run the \"version_argument\" AuTest."

0 comments on commit d55d019

Please sign in to comment.