Skip to content

Commit

Permalink
Bug fix: Now use proper sed command in changeVersionNumbers.sh
Browse files Browse the repository at this point in the history
.release/changeVersionNumbers.sh
- Now use the proper sed command ("s/${1}/${2}/g") in the replace
  command.  This fixes a cut-and-paste error.

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
  • Loading branch information
yantosca committed Dec 4, 2023
1 parent 3ce74ea commit 9387531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .release/changeVersionNumbers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ function replace() {
# 1st argument = regular expression
# 2nd argument = file to be edited
#========================================================================
regex="${1}"
file="${2}"
regex="s/${1}/${2}/g"
file="${3}"
if [[ "x$(uname -s)" == "xDarwin" ]]; then
sed -i '' -e "${regex}" "${file}" # MacOS/Darwin
else
Expand Down

0 comments on commit 9387531

Please sign in to comment.