Remove trailing ,

This commit is contained in:
Alexandre
2023-03-11 22:19:02 +01:00
committed by GitHub
parent bcc8791e6e
commit 11a749b486

View File

@@ -91,7 +91,8 @@ jobs:
if [ -f config.yaml ]; then
version="$(sed -e '/version/!d' -e 's/.*version: //' config.yaml)"
elif [ -f config.json ]; then
version="$(sed -e '/version/!d' -e 's/.*[^"]*"\([^"]*\)",/\1/' config.json)"
version="$(sed -e '/version/!d' -e 's/.*[^"]*"\([^"]*\)"/\1/' config.json)"
version="${version//,}"
else
exit 1
fi