dotfiles/_home/private_dot_local/bin/executable_fix_chmod
Lockszmith (@Kateryna) 634455175a Add fix_chmod
2025-03-09 11:33:55 -04:00

8 lines
244 B
Bash

#! /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 '{}' \;