Skip to content

Commit

Permalink
Fix whole word find and replace with sed on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Oct 17, 2019
1 parent 61cbce8 commit d753907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/sire-conda/update_recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ for dep in ${DEPS[@]}; do
if [ "$(uname)" == "Darwin" ]; then
sed -i.bak -e "s/[[:<:]]$dep[[:>:]]/$dep $ver/g" $RECIPE && rm $RECIPE.bak
else
sed -i.bak -e "s/$dep\b/$dep $ver/g" $RECIPE && rm $RECIPE.bak
sed -i.bak -e "s/\b$dep\b/$dep $ver/g" $RECIPE && rm $RECIPE.bak
fi
fi
echo " $dep $ver"
Expand Down

0 comments on commit d753907

Please sign in to comment.