2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

Merge pull request #6561 from peterwywong/wpwong1

Simplify the conditional statement to identify files which do NOT hav…
This commit is contained in:
besawn 2020-02-04 08:08:04 -05:00 committed by GitHub
commit 900cef07d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ if [[ ${CHECK} -eq 1 ]]; then
done
# Find files that have read permission missing for "all"
MISSING_PERMISSION=`find $GSA/* -type f -not -perm 644 -a -type f -not -perm 645 -a -type f -not -perm 646 -a -type f -not -perm 647 -a -type f -not -perm 664 -a -type f -not -perm 665 -a -type f -not -perm 666 -a -type f -not -perm 667`
MISSING_PERMISSION=`find $GSA/* -type f -not -perm -444`
for file in $MISSING_PERMISSION; do
echo "Verify permission for file: "
echo " " $(ls -l $file)