mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
jq: filter null values from mountpoints from lsblk output
This commit is contained in:
parent
a9e0f9ba44
commit
a511f59961
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ def deactivate:
|
|||
|
||||
def walk:
|
||||
[
|
||||
(.mountpoints[] | "umount -R \(.)"),
|
||||
(.mountpoints[] | select(. != null) | "umount -R \(.)"),
|
||||
((.children // []) | map(walk)),
|
||||
remove,
|
||||
deactivate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue