From 569f0ab5636cdd2918ba00f5d933f15081f402f2 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Sun, 20 Aug 2023 17:05:39 +0800 Subject: [PATCH] d --- features/cm/software.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/cm/software.go b/features/cm/software.go index d8657399..de34f4f7 100644 --- a/features/cm/software.go +++ b/features/cm/software.go @@ -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))