Fix lib version extraction in dependency_age.sh

This commit is contained in:
lepapareil 2022-05-06 13:46:48 +02:00 committed by jcamiel
parent 42c272669f
commit 59026938ed

View File

@ -36,7 +36,7 @@ for package in packages/* ; do
((exit_code++))
fi
done < <(sed -n "/dependencies\]/,/^$/p" "${package}/Cargo.toml" | grep --extended-regexp --invert-match "\[|path|^$" | tr -d '" ' | tr '=' ' ')
done < <(sed -n "/dependencies\]/,/^$/p" "${package}/Cargo.toml" | grep --extended-regexp --invert-match "^\[|path|^$" | cut --delimiter ',' --field 1 | sed "s/version//g" | tr -d '"{=' | tr -s ' ')
done
if [ "$1" != "--update" ] && [ "${exit_code}" -gt 0 ] ; then