Skip to content

Commit 5a4ddc9

Browse files
committed
fix(version): fix uninstall quickon show version typo
fix uninstall quickon show version typo Signed-off-by: ysicing <[email protected]>
1 parent b546482 commit 5a4ddc9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cmd/quickon/quickon.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ package quickon
99
import (
1010
"github.com/easysoft/qcadmin/cmd/flags"
1111
"github.com/easysoft/qcadmin/common"
12-
1312
"github.com/easysoft/qcadmin/internal/app/config"
1413
"github.com/easysoft/qcadmin/internal/pkg/util/factory"
1514
"github.com/easysoft/qcadmin/pkg/quickon"

pkg/quickon/quickon.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,5 +444,9 @@ func (m *Meta) UnInstall() error {
444444
repoCleanArgs := []string{"experimental", "helm", "repo-del"}
445445
_ = qcexec.Command(os.Args[0], repoCleanArgs...).Run()
446446
m.log.Done("uninstall helm repo success")
447+
f := common.GetCustomConfig(common.InitFileName)
448+
if file.CheckFileExists(f) {
449+
os.Remove(f)
450+
}
447451
return nil
448452
}

0 commit comments

Comments
 (0)