Simplified the pipeline which obtains the partition device files

master
Thomas Schmitt 3 years ago
parent e226486172
commit c0b650bebb
  1. 5
      xorriso-dd-target/xorriso-dd-target

@ -519,8 +519,9 @@ list_devices() {
## Puts list of mounted (sub-)devices of $1 into $mounted_devs
list_mounted_of() {
partitions=$("$lsblk_cmd" -n -p -o NAME /dev/"$1" | grep -v '^'/dev/"$1"'$' \
| sed -e 's/[^a-zA-Z0-9_+@:.,/-]//g' | tr '\n\r' ' ')
partitions=$("$lsblk_cmd" -l -n -p -o NAME /dev/"$1" \
| grep -v '^'/dev/"$1"'$' \
| tr '\n\r' ' ')
mounted_devs=
for i in /dev/"$1" $partitions
do

Loading…
Cancel
Save