fix: #25
parent
b1b7ca737b
commit
e90f1e8e87
|
@ -1,3 +1,11 @@
|
||||||
|
# 0.1.2
|
||||||
|
|
||||||
|
## Feature
|
||||||
|
|
||||||
|
## Fix
|
||||||
|
|
||||||
|
* all cmds should be pass straight back to user
|
||||||
|
|
||||||
# 0.1.1
|
# 0.1.1
|
||||||
|
|
||||||
## Feature
|
## Feature
|
||||||
|
|
|
@ -58,10 +58,10 @@ func (f *File) Do() (string, error) {
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
cmd = exec.Command(WIN_SHELL, "/c", f.Action)
|
cmd = exec.Command(WIN_SHELL, "/c", f.Action)
|
||||||
}
|
}
|
||||||
out, err := cmd.CombinedOutput()
|
out, _ := cmd.CombinedOutput()
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
return "", err
|
// return "", err
|
||||||
}
|
// }
|
||||||
return string(out), nil
|
return string(out), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue