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:
Turbo Fredriksson
2025-12-12 23:08:51 +00:00
committed by Tony Hutter
parent f27550e985
commit 026d4ee1a9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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}"