Skip to content

Commit

Permalink
imghelper: add ShellCheck exception to undo_sign()
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick J.P. Culp <[email protected]>
  • Loading branch information
jpculp committed Jul 26, 2024
1 parent ac1e2c1 commit 84d0c29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions twoliter/embedded/imghelper
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ sbsetup_signing_profile() {
undo_sign() {
local what
what="${1:?}"
# shellcheck disable=SC2076 # literal match is intended.
if [[ ! "$(pesign -i "${what}" -l)" =~ 'No signatures found.' ]]; then
mv "${what}" "${what}.orig"
pesign -i "${what}.orig" -o "${what}" -u 0 -r
Expand Down

0 comments on commit 84d0c29

Please sign in to comment.