Skip to content

Commit 817b583

Browse files
committed
Error expansion seems to be missed
Fixes: #393 Signed-off-by: Sergio Arroutbi <[email protected]>
1 parent 3999199 commit 817b583

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/luks/clevis-luks-report

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ report_sss() {
9999
local jwe
100100
for jwe in $(jose fmt --json="${content}" --get jwe --foreach=-); do
101101
jwe="$(printf '%s' "${jwe}" | sed -e 's/"//g')"
102-
report_decode "${jwe}"
102+
report_decode "${jwe}" || return 1
103103
done
104104
}
105105

@@ -129,10 +129,10 @@ report_decode() {
129129

130130
case "${pin}" in
131131
tang)
132-
report_tang "${content}"
132+
report_tang "${content}" || return 1
133133
;;
134134
sss)
135-
report_sss "${content}"
135+
report_sss "${content}" || return 1
136136
;;
137137
esac
138138
}

0 commit comments

Comments
 (0)