Forgot to remove a quote in output

This commit is contained in:
oddlama 2020-04-23 23:19:00 +02:00
parent b1c4d9d40e
commit cf0413f948
No known key found for this signature in database
GPG Key ID: 88EA325D51D53908
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ get_device_by_ptuuid() {
|| die "Error while executing lsblk to find PTUUID=$ptuuid" || die "Error while executing lsblk to find PTUUID=$ptuuid"
dev="$(grep "ptuuid=\"$ptuuid\" partuuid=\"\"" <<< "${dev,,}")" \ dev="$(grep "ptuuid=\"$ptuuid\" partuuid=\"\"" <<< "${dev,,}")" \
|| die "Could not find PTUUID=... in lsblk output" || die "Could not find PTUUID=... in lsblk output"
dev="${dev%' ptuuid='*}" dev="${dev%'" ptuuid='*}"
dev="${dev#'name="'}" dev="${dev#'name="'}"
echo -n "$dev" echo -n "$dev"
} }