mirror of
https://github.com/EnumeratedDev/bpm.git
synced 2026-09-16 10:36:12 +00:00
Fixed small bug regarding installation reasons not always being read correctly
This commit is contained in:
@@ -95,7 +95,7 @@ func GetInstallationReason(pkg, rootDir string) InstallationReason {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return Unknown
|
return Unknown
|
||||||
}
|
}
|
||||||
reason := string(b)
|
reason := strings.TrimSpace(string(b))
|
||||||
if reason == "manual" {
|
if reason == "manual" {
|
||||||
return Manual
|
return Manual
|
||||||
} else if reason == "dependency" {
|
} else if reason == "dependency" {
|
||||||
|
|||||||
Reference in New Issue
Block a user