1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-11 16:22:26 +08:00

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

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

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