diff --git a/release/release.go b/release/release.go index cf11f06..8b4d799 100644 --- a/release/release.go +++ b/release/release.go @@ -114,12 +114,13 @@ func (r *Release) Cleanup(keep int) error { if len(dirs) > 0 { var dirsStr string for _, dir := range dirs { - dirsStr = strings.Join([]string{dirsStr, filepath.Join(r.ReleasesPath, dir)}, " ") + dirsStr = strings.Join([]string{dirsStr, dir}, " ") } rmCmd := fmt.Sprintf("rm -fr %s", dirsStr) if err := osutil.RunCmd("/bin/bash", "-c", rmCmd); err != nil { return errors.Wrapf(err, "Failed to remove %s", dirsStr) } + fmt.Printf("deleted: %s\n", dirsStr) } return nil