Skip to content

Commit

Permalink
Error expansion seems to be missed
Browse files Browse the repository at this point in the history
Fixes: #393

Signed-off-by: Sergio Arroutbi <[email protected]>
  • Loading branch information
sarroutbi committed Dec 2, 2022
1 parent 3999199 commit 817b583
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/luks/clevis-luks-report
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 817b583

Please sign in to comment.