mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Change shellcheck and checkbashism triggers.
Newer versions of `shellcheck` and `checkbashism` finds more than previous, so fix those. Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Rob Norris <robn@despairlabs.com> Signed-off-by: Turbo Fredriksson <turbo@bayour.com> Closes #18000
This commit is contained in:
committed by
Tony Hutter
parent
f27550e985
commit
026d4ee1a9
@@ -446,7 +446,7 @@ decrypt_fs()
|
||||
echo "${ENCRYPTIONROOT}" > /run/zfs_fs_name
|
||||
|
||||
# If root dataset is encrypted...
|
||||
if ! [ "${ENCRYPTIONROOT}" = "-" ]
|
||||
if [ "${ENCRYPTIONROOT}" != "-" ]
|
||||
then
|
||||
KEYSTATUS="$(get_fs_value "${ENCRYPTIONROOT}" keystatus)"
|
||||
# Continue only if the key needs to be loaded
|
||||
@@ -465,7 +465,7 @@ decrypt_fs()
|
||||
done
|
||||
|
||||
# Do not prompt if key is stored noninteractively,
|
||||
if ! [ "${KEYLOCATION}" = "prompt" ]
|
||||
if [ "${KEYLOCATION}" != "prompt" ]
|
||||
then
|
||||
"${ZFS}" load-key "${ENCRYPTIONROOT}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user