dotfiles/.local/bin/scripts/chexec

5 lines
223 B
Plaintext
Raw Normal View History

#!/bin/sh
2023-04-10 16:31:48 +00:00
# Set exec flag on all files that should be executable
2023-11-04 18:08:39 +00:00
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 {} +