mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
fix: os.go/ExecCommand make error the last return value
This commit is contained in:
1 parent
764a6fe107
commit
261370e30d
6 files changed
+12
-8
No files matched your search
+1
-1
@@ -51,7 +51,7 @@ func CompareOsEnv(key, comparedEnv string) bool {
|
||||
}
|
||||
|
||||
// ExecCommand use shell /bin/bash -c to execute command
|
||||
func ExecCommand(command string) (err error, stdout, stderr string) {
|
||||
func ExecCommand(command string) (stdout, stderr string, err error) {
|
||||
var out bytes.Buffer
|
||||
var errout bytes.Buffer
|
||||
|
||||
|
||||
Reference in new issue
Block a user