mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-11 16:44:59 +00:00
policycoreutils: fixfiles: remove two unused variables
DIRS was suspicious because you can't store file names in a normal variable, and it's not that common to use arrays in bash. It's not actually used. While we're here, there's another variable which is never used and should just be removed. (Pointed out by `shellcheck`. It makes a couple of other points too, but I have more specific patches I want to put those in). Signed-off-by: Alan Jenkins <alan.christopher.jenkins@gmail.com>
This commit is contained in:
parent
ce2a7fb143
commit
42f91ba291
@ -107,13 +107,11 @@ fullFlag=0
|
||||
BOOTTIME=""
|
||||
VERBOSE="-p"
|
||||
FORCEFLAG=""
|
||||
DIRS=""
|
||||
RPMILES=""
|
||||
SETFILES=/sbin/setfiles
|
||||
RESTORECON=/sbin/restorecon
|
||||
FILESYSTEMSRW=`get_rw_labeled_mounts`
|
||||
FILESYSTEMSRO=`get_ro_labeled_mounts`
|
||||
FILESYSTEMS="$FILESYSTEMSRW $FILESYSTEMSRO"
|
||||
SELINUXTYPE="targeted"
|
||||
if [ -e /etc/selinux/config ]; then
|
||||
. /etc/selinux/config
|
||||
@ -373,7 +371,7 @@ fi
|
||||
shift
|
||||
|
||||
#
|
||||
# check if they specified both DIRS and RPMFILES
|
||||
# check if they specified both RPMFILES and FILEPATHs
|
||||
#
|
||||
|
||||
if [ ! -z "$RPMFILES" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user