修复 minio 匹配失败

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
新疆萌森软件开发工作室 2024-10-31 18:33:27 +08:00
parent 1db969e889
commit 1605bfee20

View File

@ -28,7 +28,7 @@ process_image() {
echo "Trimmed version: $trimmed_version"
# Match date version
date_version=$(echo "$trimmed_version" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}$')
date_version=$(echo "$trimmed_version" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}')
if [[ -n "$date_version" ]]; then
cleaned_version=$date_version
echo "Date version: $date_version"