fix(saas): remove current directory part (#1666)

This commit is contained in:
MaineK00n
2023-04-27 12:09:34 +09:00
committed by GitHub
parent 046a29467b
commit 3cc7e92ce5

View File

@@ -128,11 +128,6 @@ func (p *SaaSCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{})
if err := os.RemoveAll(dir); err != nil {
logging.Log.Warnf("Failed to remove %s. err: %+v", dir, err)
}
symlink := filepath.Join(config.Conf.ResultsDir, "current")
err := os.Remove(symlink)
if err != nil {
logging.Log.Warnf("Failed to remove %s. err: %+v", dir, err)
}
}
return subcommands.ExitSuccess