fix(cli): remove the local flag in local release version (#1361)

This commit is contained in:
dkeven 2025-05-29 20:10:44 +08:00 committed by GitHub
parent d5673b81e0
commit e58743fa87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ function command_exists() {
if [[ x"$VERSION" == x"" ]]; then
if [[ "$LOCAL_RELEASE" == "1" ]]; then
ts=$(date +%Y%m%d%H%M%S)
export VERSION="1.12.0-local-$ts"
export VERSION="1.12.0-$ts"
echo "will build and use a local release of Olares with version: $VERSION"
echo ""
else

View file

@ -48,7 +48,7 @@ func NewCmdRelease() *cobra.Command {
}
if version == "" {
version = fmt.Sprintf("1.12.0-local-%s", time.Now().Format("20060102150405"))
version = fmt.Sprintf("1.12.0-%s", time.Now().Format("20060102150405"))
fmt.Printf("--version unspecified, using: %s\n", version)
time.Sleep(1 * time.Second)
}