This commit is contained in:
2023-08-20 17:05:39 +08:00
parent 02d4d95681
commit 569f0ab563

View File

@@ -99,7 +99,7 @@ func UploadSoftwareFile(w http.ResponseWriter, r *http.Request) {
filePrefix := fileName[:strings.Index(fileName, ".zip")]
filePath := fmt.Sprintf("%s/%s", softwarePath, fileName)
cmd := exec.Command("unzip", filePath)
cmd := exec.Command("unzip", "-f", filePath)
cmd.Dir = softwarePath
out, err := cmd.CombinedOutput()
log.Debugf("Exec outpout:%s", string(out))