qmnt - Drives containing encrypted partitions can now be recursively mounted properly

This commit is contained in:
Logan G 2024-09-25 16:09:05 -06:00
parent 168ef3cbf7
commit c711ffc42c
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -172,7 +172,7 @@ fi
TARGET_TYPE=$(lsblk -ndo TYPE "${TARGET}")
if [[ ( "$TARGET_TYPE" == "disk" || "$TARGET_TYPE" == "loop" ) && -z "$(blkid -o value -s TYPE "${TARGET}")" ]]; then
lsblk --list --paths --noheadings --output NAME,TYPE "${TARGET}" | while read name type; do
[[ "$type" = "part" ]] && TARGET="$name" "$0" $@
[[ "$type" = "part" ]] && ( TARGET="$name" "$0" $@ ) </dev/tty
done
exit 0
fi