Fix find fields in new profile format

New format uses permfile= so it needs a new cut to filter the name file
This commit is contained in:
David 2019-07-18 18:52:36 +02:00 committed by GitHub
parent 022f427a69
commit 4d5a0c59c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
LogText "Test: Checking file permissions"
for PROFILE in ${PROFILES}; do
LogText "Using profile ${PROFILE} for baseline."
FIND=$(${EGREPBINARY} '^permfile=|^permdir=' ${PROFILE} | ${CUTBINARY} -d= -f2)
FIND=$(${EGREPBINARY} '^permfile=|^permdir=' ${PROFILE} | ${CUTBINARY} -d= -f2 | ${CUTBINARY} -d: -f1)
for I in ${FIND}; do
LogText "Checking ${I}"
CheckFilePermissions "${I}"