fix: Get version script

This commit is contained in:
wizardchen
2025-09-17 16:40:48 +08:00
parent 31e7bc2b15
commit 9756b4aa82
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -39,11 +39,11 @@ fi
# 根据参数输出不同格式
case "${1:-env}" in
"env")
# 输出环境变量格式
# 输出环境变量格式,对包含空格的值进行转义
echo "VERSION=$VERSION"
echo "COMMIT_ID=$COMMIT_ID"
echo "BUILD_TIME=$BUILD_TIME"
echo "GO_VERSION=$GO_VERSION"
echo "BUILD_TIME=\"$BUILD_TIME\""
echo "GO_VERSION=\"$GO_VERSION\""
;;
"json")
# 输出JSON格式