Compare commits

..

No commits in common. "c711ffc42ca9d1d4be317f8cf096024d7f4e8694" and "877ade171bb20c68ccb347846a7a23ba5d92c456" have entirely different histories.

View file

@ -170,9 +170,9 @@ if [[ -z $TARGET ]]; then
fi
TARGET_TYPE=$(lsblk -ndo TYPE "${TARGET}")
if [[ ( "$TARGET_TYPE" == "disk" || "$TARGET_TYPE" == "loop" ) && -z "$(blkid -o value -s TYPE "${TARGET}")" ]]; then
if [[ "$TARGET_TYPE" == "disk" && -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" $@ ) </dev/tty
[[ "$type" = "part" ]] && TARGET="$name" "$0" $@
done
exit 0
fi