From 84d0c296774fbb3a2a24f3ccaf3370c2610e7029 Mon Sep 17 00:00:00 2001 From: "Patrick J.P. Culp" Date: Fri, 26 Jul 2024 01:17:06 +0000 Subject: [PATCH] imghelper: add ShellCheck exception to undo_sign() Signed-off-by: Patrick J.P. Culp --- twoliter/embedded/imghelper | 1 + 1 file changed, 1 insertion(+) diff --git a/twoliter/embedded/imghelper b/twoliter/embedded/imghelper index 4225888c9..0091093ee 100755 --- a/twoliter/embedded/imghelper +++ b/twoliter/embedded/imghelper @@ -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