fix: better way to make dirs executable

This commit is contained in:
silver 2023-09-06 18:29:01 +00:00
parent 551b056d9f
commit fbbb675425

View file

@ -39,7 +39,7 @@ iter_dirs(){
# Set permissions to read-only for the owner and not readable by others # Set permissions to read-only for the owner and not readable by others
# folders have to be executable to be able to read their contents # folders have to be executable to be able to read their contents
chmod -R 500 "$dir" chmod -R u+rX "$dir"
# Check if the user exists before changing ownership and permissions # Check if the user exists before changing ownership and permissions
if id "$username" &>/dev/null; then if id "$username" &>/dev/null; then