Add fix_chmod

This commit is contained in:
Lockszmith (@Kateryna) 2025-03-09 11:33:55 -04:00
parent 7447160e7f
commit 634455175a
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#! /usr/bin/env bash
DIR=${1:?Must supply path (use . for CWD)}
find "${DIR}" -type d -exec chmod 775 '{}' \; \
&& find "${DIR}" -type f -not -executable -exec chmod 664 '{}' \; \
&& find "${DIR}" -type f -executable -exec chmod 775 '{}' \;