This commit is contained in:
吕海涛
2021-05-08 17:24:53 +08:00
parent 3c3b3110a2
commit a9144c9766
7 changed files with 10 additions and 22 deletions

View File

@@ -55,7 +55,7 @@ func setCommonHeader(w http.ResponseWriter) {
func execCmd(cmdStrs []string) error {
for _, cmdStr := range cmdStrs {
cmd := exec.Command("bash", "-c", cmdStr)
cmd := exec.Command("sh", "-c", cmdStr)
b, err := cmd.CombinedOutput()
if err != nil {
log.Println(string(b), err)