blkdeactivate.sh: Add PATH environment variable into script 49/308949/2 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20240404.164503 accepted/tizen/unified/x/20240408.053735
authorUnsung Lee <unsung.lee@samsung.com>
Wed, 3 Apr 2024 05:55:46 +0000 (14:55 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Wed, 3 Apr 2024 06:03:35 +0000 (15:03 +0900)
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>
scripts/blkdeactivate.sh.in

index 7c517b8..17c059a 100644 (file)
@@ -29,6 +29,8 @@
 #set -x
 shopt -s dotglob nullglob
 
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
 TOOL=blkdeactivate
 
 DEV_DIR="/dev"