package uploader: escape dot in versions when using grep

This commit is contained in:
Leonid Pliushch 2019-03-20 01:36:41 +02:00
parent 45237e957e
commit 81594bf062

View File

@ -261,7 +261,8 @@ delete_old_versions_from_package() {
if [ "$http_status_code" = "200" ]; then
package_latest_version=$(
echo "$curl_response" | cut -d'|' -f1 | jq -r .latest_version
echo "$curl_response" | cut -d'|' -f1 | jq -r .latest_version | \
sed 's/\./\\./g'
)
package_versions=$(