mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-09-15 23:46:12 +00:00
Hide snap mounts
This commit is contained in:
@@ -62,6 +62,11 @@ func GetMountedPartitions(hiddenPartitions, hiddenFilesystems []string) []partit
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip snap mountpoints
|
||||||
|
if strings.HasPrefix(fields[1], "/snap/") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Skip partition if explicitly hidden
|
// Skip partition if explicitly hidden
|
||||||
if slices.Contains(hiddenPartitions, fields[0]) {
|
if slices.Contains(hiddenPartitions, fields[0]) {
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user