Skip to content

Commit

Permalink
fix cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
xhd2015 committed Jun 16, 2024
1 parent 1a16a85 commit cb5d302
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmd/xgo/runtime_gen/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
)

const VERSION = "1.0.40"
const REVISION = "7b0e45276bdca03c2d25c9a4f507d15e627c9664+1"
const NUMBER = 265
const REVISION = "1a16a856a24d88d7f84f61a39340a2b264e99b10+1"
const NUMBER = 266

// these fields will be filled by compiler
const XGO_VERSION = ""
Expand Down
4 changes: 2 additions & 2 deletions cmd/xgo/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import "fmt"

const VERSION = "1.0.40"
const REVISION = "7b0e45276bdca03c2d25c9a4f507d15e627c9664+1"
const NUMBER = 265
const REVISION = "1a16a856a24d88d7f84f61a39340a2b264e99b10+1"
const NUMBER = 266

func getRevision() string {
revSuffix := ""
Expand Down
4 changes: 2 additions & 2 deletions runtime/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
)

const VERSION = "1.0.40"
const REVISION = "7b0e45276bdca03c2d25c9a4f507d15e627c9664+1"
const NUMBER = 265
const REVISION = "1a16a856a24d88d7f84f61a39340a2b264e99b10+1"
const NUMBER = 266

// these fields will be filled by compiler
const XGO_VERSION = ""
Expand Down
2 changes: 1 addition & 1 deletion support/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func cmdExecEnv(cmd string, args []string, env []string, dir string, useStdout b
out, err := execCmd.Output()
outStr := strings.TrimSuffix(string(out), "\n")
if err != nil {
if !c.ignoreError {
if c != nil && !c.ignoreError {
return outStr, err
}
err = nil
Expand Down

0 comments on commit cb5d302

Please sign in to comment.