jq: filter null values from mountpoints from lsblk output

This commit is contained in:
Jörg Thalheim 2023-02-03 14:57:55 +01:00
parent a9e0f9ba44
commit a511f59961

View file

@ -54,7 +54,7 @@ def deactivate:
def walk:
[
(.mountpoints[] | "umount -R \(.)"),
(.mountpoints[] | select(. != null) | "umount -R \(.)"),
((.children // []) | map(walk)),
remove,
deactivate