Compare commits
2 commits
877ade171b
...
c711ffc42c
Author | SHA1 | Date | |
---|---|---|---|
c711ffc42c | |||
168ef3cbf7 |
1 changed files with 2 additions and 2 deletions
|
@ -170,9 +170,9 @@ if [[ -z $TARGET ]]; then
|
|||
fi
|
||||
|
||||
TARGET_TYPE=$(lsblk -ndo TYPE "${TARGET}")
|
||||
if [[ "$TARGET_TYPE" == "disk" && -z "$(blkid -o value -s TYPE "${TARGET}")" ]]; then
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue