mirror of
https://git.sr.ht/~nabijaczleweli/tzpfms
synced 2025-04-13 09:37:13 +03:00
awk -> cut
This commit is contained in:
parent
62e896642b
commit
29c58cfe9b
@ -1,4 +1,4 @@
|
||||
# tzpfms [](//builds.sr.ht/~nabijaczleweli/tzpfms) [](LICENSE)
|
||||
# tzpfms [](//builds.sr.ht/~nabijaczleweli/tzpfms)[](LICENSE)
|
||||
TPM-based encryption keys for ZFS datasets.
|
||||
|
||||
## [Manpages](//srhtcdn.githack.com/~nabijaczleweli/tzpfms/blob/man/zfs-tpm-list.8.html) ([PDF](//srhtcdn.githack.com/~nabijaczleweli/tzpfms/blob/man/tzpfms.pdf))
|
||||
|
@ -13,7 +13,7 @@ _get_backend() {
|
||||
[ -z "$eroot" ] || [ "$eroot" = "-" ] && return 1
|
||||
|
||||
|
||||
backend="$(zfs-tpm-list -H "$eroot" | awk -F'\t' '{print $2}')"
|
||||
backend="$(zfs-tpm-list -H "$eroot" | cut -f2)"
|
||||
[ -n "$backend" ]
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user