From cb5d3025fad60e00be0dfe8fdc7eb1bef97dedc6 Mon Sep 17 00:00:00 2001 From: xhd2015 Date: Sun, 16 Jun 2024 15:48:56 +0800 Subject: [PATCH] fix cmd --- cmd/xgo/runtime_gen/core/version.go | 4 ++-- cmd/xgo/version.go | 4 ++-- runtime/core/version.go | 4 ++-- support/cmd/cmd.go | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/xgo/runtime_gen/core/version.go b/cmd/xgo/runtime_gen/core/version.go index 7545c531..874e47e9 100755 --- a/cmd/xgo/runtime_gen/core/version.go +++ b/cmd/xgo/runtime_gen/core/version.go @@ -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 = "" diff --git a/cmd/xgo/version.go b/cmd/xgo/version.go index 29ae3b35..24643a86 100644 --- a/cmd/xgo/version.go +++ b/cmd/xgo/version.go @@ -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 := "" diff --git a/runtime/core/version.go b/runtime/core/version.go index 7545c531..874e47e9 100644 --- a/runtime/core/version.go +++ b/runtime/core/version.go @@ -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 = "" diff --git a/support/cmd/cmd.go b/support/cmd/cmd.go index 963d9559..1d67388f 100644 --- a/support/cmd/cmd.go +++ b/support/cmd/cmd.go @@ -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