Fixed small bug regarding installation reasons not always being read correctly

This commit is contained in:
EnumDev 2024-10-23 19:13:18 +03:00
parent 6e11f937a6
commit 2c7c4eeb73

View File

@ -95,7 +95,7 @@ func GetInstallationReason(pkg, rootDir string) InstallationReason {
if err != nil {
return Unknown
}
reason := string(b)
reason := strings.TrimSpace(string(b))
if reason == "manual" {
return Manual
} else if reason == "dependency" {