dotfiles/.local/bin/scripts/chexec

5 lines
223 B
Bash
Executable File

#!/bin/sh
# Set exec flag on all files that should be executable
case "$1" in ([0-9]) depth=$1; shift;; esac
find -maxdepth ${depth:-4} \( -name "*.sh" -o -name "*.py" -o -path '*/githooks/*' \) "$@" -exec chmod -v +x {} +