mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-20 03:24:09 -04:00
skip, if not a folder
This commit is contained in:
parent
6321ff5ad5
commit
799acad724
1 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,9 @@ home_folder_access_rights_lockdown() {
|
||||||
if [ -f "/var/cache/security-misc/state-files/$base_name" ]; then
|
if [ -f "/var/cache/security-misc/state-files/$base_name" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
if [ ! -d "$folder_name" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
mkdir -p /var/cache/security-misc/state-files
|
mkdir -p /var/cache/security-misc/state-files
|
||||||
echo "$0: chmod o-rwx \"$folder_name\""
|
echo "$0: chmod o-rwx \"$folder_name\""
|
||||||
chmod o-rwx "$folder_name"
|
chmod o-rwx "$folder_name"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue