From 817b583f0d669d9cded63149820a863979b2d067 Mon Sep 17 00:00:00 2001 From: Sergio Arroutbi Date: Fri, 2 Dec 2022 12:00:48 +0100 Subject: [PATCH] Error expansion seems to be missed Fixes: #393 Signed-off-by: Sergio Arroutbi --- src/luks/clevis-luks-report | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/luks/clevis-luks-report b/src/luks/clevis-luks-report index c55df29c..8bfa8312 100755 --- a/src/luks/clevis-luks-report +++ b/src/luks/clevis-luks-report @@ -99,7 +99,7 @@ report_sss() { local jwe for jwe in $(jose fmt --json="${content}" --get jwe --foreach=-); do jwe="$(printf '%s' "${jwe}" | sed -e 's/"//g')" - report_decode "${jwe}" + report_decode "${jwe}" || return 1 done } @@ -129,10 +129,10 @@ report_decode() { case "${pin}" in tang) - report_tang "${content}" + report_tang "${content}" || return 1 ;; sss) - report_sss "${content}" + report_sss "${content}" || return 1 ;; esac }