From d342fdc74fab840565e893804e22d533b19b4d4a Mon Sep 17 00:00:00 2001 From: lepapareil Date: Fri, 6 May 2022 14:08:03 +0200 Subject: [PATCH] Fix lib version update in dependency_age.sh --- ci/dependency_age.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/dependency_age.sh b/ci/dependency_age.sh index 8a17fd2b8..af208b68d 100755 --- a/ci/dependency_age.sh +++ b/ci/dependency_age.sh @@ -26,8 +26,9 @@ for package in packages/* ; do fi else if [ "$1" = "--update" ] ; then - sed -i" " "s/${dependency}.*=.*\"${actual_version}\"/${dependency} = \"${last_version}\"/g" "${package}/Cargo.toml" - grep --silent "${dependency} = \"${last_version}\"" "${package}/Cargo.toml" && \ + sed -i" " "s/${dependency} = { version = \"${actual_version}\"/${dependency} = { version = \"${last_version}\"/g" "${package}/Cargo.toml" + sed -i" " "s/${dependency} = \"${actual_version}\"/${dependency} = \"${last_version}\"/g" "${package}/Cargo.toml" + grep --extended-regexp --silent "${dependency}.*=.*\"${last_version}\"" "${package}/Cargo.toml" && \ echo "${color_blue}old, updated to ${last_version}${color_reset}" || \ echo "${color_red}error, update to ${last_version} fails, please check ${package}/Cargo.toml format and syntax${color_reset}" else