fix: dont lookup release notes if no version passed

This commit is contained in:
decentral1se 2022-01-03 16:13:54 +01:00
parent 64e223a810
commit 65feda7f1d
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 4 additions and 0 deletions

View File

@ -250,6 +250,10 @@ func NewVersionOverview(app config.App, currentVersion, newVersion, releaseNotes
// GetReleaseNotes prints release notes for a recipe version
func GetReleaseNotes(recipeName, version string) (string, error) {
if version == "" {
return "", nil
}
fpath := path.Join(config.RECIPES_DIR, recipeName, "release", version)
if _, err := os.Stat(fpath); !os.IsNotExist(err) {