From b6b9bc28895768c6924354ee11ea0a35d5c86554 Mon Sep 17 00:00:00 2001 From: Unsung Lee Date: Wed, 3 Apr 2024 14:55:46 +0900 Subject: [PATCH] blkdeactivate.sh: Add PATH environment variable into script Add PATH environment variable into script to pass the security path checker. The corresponding error is reported like below: Shellscript check failed. Scripts without PATH variable: /usr/sbin/blkdeactivate,device-mapper-1.02.196-1.armv7l Change-Id: I6887440530d84bf01f35d93255e590fe7e62a03f Signed-off-by: Unsung Lee --- scripts/blkdeactivate.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/blkdeactivate.sh.in b/scripts/blkdeactivate.sh.in index 7c517b8..17c059a 100644 --- a/scripts/blkdeactivate.sh.in +++ b/scripts/blkdeactivate.sh.in @@ -29,6 +29,8 @@ #set -x shopt -s dotglob nullglob +PATH=/bin:/usr/bin:/sbin:/usr/sbin + TOOL=blkdeactivate DEV_DIR="/dev" -- 2.34.1