mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
fix: harden and simplify Linux system install
Tighten shim detection, profile repair, and install ordering while trimming over-specific doctor/info hints from the system-install path. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -50,6 +50,9 @@ func FilterPMGFromPath(pathEnv string) string {
|
||||
if strings.HasSuffix(entry, pmgBinSuffix) {
|
||||
continue
|
||||
}
|
||||
if filepath.Clean(entry) == filepath.Clean(SystemBinDir()) {
|
||||
continue
|
||||
}
|
||||
if shimDir != "" && filepath.Clean(entry) == shimDir {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user