mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-10-31 10:21:48 +00:00
Hide snap mounts
This commit is contained in:
1 file changed
+5
@@ -62,6 +62,11 @@ func GetMountedPartitions(hiddenPartitions, hiddenFilesystems []string) []partit
|
||||
continue
|
||||
}
|
||||
|
||||
// Skip snap mountpoints
|
||||
if strings.HasPrefix(fields[1], "/snap/") {
|
||||
continue
|
||||
}
|
||||
|
||||
// Skip partition if explicitly hidden
|
||||
if slices.Contains(hiddenPartitions, fields[0]) {
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user