Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
新疆萌森软件开发工作室 2024-10-18 13:35:27 +08:00
parent c9c26d6062
commit d79c3db986

View File

@ -36,7 +36,7 @@ process_image() {
fi fi
# Match number version # Match number version
number_version=$(echo "$trimmed_version" | grep -oE '[0-9]+(\.[0-9]+){0,3}$') number_version=$(echo "$trimmed_version" | grep -oE '[0-9]+(\.[0-9]+){0,3}' | head -n1)
if [[ -n "$number_version" ]]; then if [[ -n "$number_version" ]]; then
cleaned_version=$number_version cleaned_version=$number_version
echo "Number version: $number_version" echo "Number version: $number_version"