fix: os.go/ExecCommand make error the last return value

This commit is contained in:
dudaodong committed 2022-01-17 16:57:38 +08:00
1 parent 764a6fe107
commit 261370e30d
6 files changed
+12 -8

No files matched your search

+1 -1
View File
@@ -535,7 +535,7 @@ func GetOsEnv(key string) string //gets the value of the environment variable na
func SetOsEnv(key, value string) error //sets the value of the environment variable named by the key.
func RemoveOsEnv(key string) error //remove a single environment variable.
func CompareOsEnv(key, comparedEnv string) bool //gets env named by the key and compare it with comparedEnv
func ExecCommand(command string) (err error, stdout, stderr string) //use shell /bin/bash -c to execute command
func ExecCommand(command string) (stdout, stderr string, err error) //use shell /bin/bash -c to execute command
```
### 13. validator is for data validation