mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
zed.d, contrib: fix shellcheck errors in scripts
Not sure why this was not caught by CI; perhaps my shellcheck is new enough to catch more things. Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
This commit is contained in:
committed by
Tony Hutter
parent
5889b7ce90
commit
f1321648a5
@@ -97,7 +97,7 @@ fi
|
||||
if [ "$(zpool get -Ho value feature@encryption "${ZFS_POOL}")" = 'active' ]; then
|
||||
# if the root dataset has encryption enabled
|
||||
ENCRYPTIONROOT="$(zfs get -Ho value encryptionroot "${ZFS_DATASET}")"
|
||||
if ! [ "${ENCRYPTIONROOT}" = "-" ]; then
|
||||
if [ "${ENCRYPTIONROOT}" != "-" ]; then
|
||||
KEYSTATUS="$(zfs get -Ho value keystatus "${ENCRYPTIONROOT}")"
|
||||
# if the key needs to be loaded
|
||||
if [ "$KEYSTATUS" = "unavailable" ]; then
|
||||
|
||||
Reference in New Issue
Block a user