修复 postgresql 匹配机制

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
新疆萌森软件开发工作室 2024-11-15 11:26:41 +08:00
parent 65744f24a0
commit ab40db7255

View File

@ -45,11 +45,12 @@ process_image() {
date_version=$(echo "$trimmed_version" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}')
if [[ -n "$date_version" ]]; then
if [[ "$found_alpine" == true ]]; then
date_version="$date_version-alpine"
cleaned_version="$date_version-alpine"
echo "Date alpine version: $date_version"
else
cleaned_version=$date_version
fi
echo "Date version: $date_version"
fi
return
fi
@ -57,11 +58,12 @@ process_image() {
number_version=$(echo "$trimmed_version" | grep -oE '[0-9]+(\.[0-9]+){0,3}' | head -n1)
if [[ -n "$number_version" ]]; then
if [[ "$found_alpine" == true ]]; then
number_version="$number_version-alpine"
cleaned_version="$number_version-alpine"
echo "Number alpine version: $number_version"
else
cleaned_version=$number_version
fi
echo "Number version: $number_version"
fi
return
fi