Skip to content

Commit f56fdd6

Browse files
committed
shellcheck: silence trap-only cleanup warning in UserDataEncryption
Add a targeted SC2317 annotation for the trap-invoked cleanup function in UserDataEncryption/run.sh without changing runtime behavior. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
1 parent e2005a1 commit f56fdd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Runner/suites/Kernel/Baseport/UserDataEncryption

Runner/suites/Kernel/Baseport/UserDataEncryption/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ MOUNT_DIR=""
5858
FS_PATH=""
5959
key_id=""
6060
KEY_FILE=""
61-
61+
# shellcheck disable=SC2317 # cleanup is invoked via trap
6262
cleanup() {
6363

6464
if [ -n "${MOUNT_DIR:-}" ] && [ "${MOUNT_DIR:-}" != "/" ] && [ -d "${MOUNT_DIR:-}" ]; then

0 commit comments

Comments
 (0)