mirror of
https://github.com/beclab/Olares
synced 2026-05-23 00:38:25 +00:00
fix(cli): remove the local flag in local release version (#1361)
This commit is contained in:
parent
d5673b81e0
commit
e58743fa87
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue