fix version

This commit is contained in:
changjin wei(魏昌进) 2025-02-05 01:07:37 +08:00
parent 44e3289b5f
commit 58c79f0eb3

View File

@ -4,7 +4,13 @@
EXT_DIR=$(cd "$(dirname "$0")" && pwd)
# 生成 YYYY.MM.DD.HH.MM 格式的时间戳
VERSION=$(date +%y.%-m%d.%-H%M)
hour=$(date +%-H)
if [ "$hour" -eq 0 ]; then
VERSION=$(date +%y.%-m%d.%-H%M)
else
VERSION=$(date +%y.%-m%d.%-H%M)
fi
# 颜色输出
GREEN='\033[0;32m'