summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnsung Lee <unsung.lee@samsung.com>2024-04-03 14:55:46 +0900
committerUnsung Lee <unsung.lee@samsung.com>2024-04-03 15:03:35 +0900
commitb6b9bc28895768c6924354ee11ea0a35d5c86554 (patch)
treec9b26b0a52bf3bf4ef6c215d5e83854db809d40a
parentd985ba2ea37e71eeaac3a7bb3838045e89521204 (diff)
downloaddevice-mapper-accepted/tizen_9.0_unified.tar.gz
device-mapper-accepted/tizen_9.0_unified.tar.bz2
device-mapper-accepted/tizen_9.0_unified.zip
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 <unsung.lee@samsung.com>
-rw-r--r--scripts/blkdeactivate.sh.in2
1 files changed, 2 insertions, 0 deletions
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"