From d753907912ca7be9468abe06a1cc9f3faf127a89 Mon Sep 17 00:00:00 2001 From: Lester Hedges Date: Thu, 17 Oct 2019 19:58:51 +0100 Subject: [PATCH] Fix whole word find and replace with sed on Linux. --- docker/sire-conda/update_recipe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/sire-conda/update_recipe.sh b/docker/sire-conda/update_recipe.sh index dfa76a613..9ecbc43a8 100755 --- a/docker/sire-conda/update_recipe.sh +++ b/docker/sire-conda/update_recipe.sh @@ -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"