skip, if not a folder

This commit is contained in:
Patrick Schleizer 2019-08-14 09:39:43 +00:00
parent 6321ff5ad5
commit 799acad724
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -45,6 +45,9 @@ home_folder_access_rights_lockdown() {
if [ -f "/var/cache/security-misc/state-files/$base_name" ]; then
continue
fi
if [ ! -d "$folder_name" ]; then
continue
fi
mkdir -p /var/cache/security-misc/state-files
echo "$0: chmod o-rwx \"$folder_name\""
chmod o-rwx "$folder_name"