summaryrefslogtreecommitdiff
path: root/sh/chmodef
blob: 446bc23038c9d5ef860d06d5495bd814ec7f83f1 (plain)
1
2
3
4
5
6
#!/bin/sh
# chmodef: CHMOD DEFault

# https://wiki.archlinux.org/title/File_permissions_and_attributes#Numeric_method
find "$@" -type d -execdir chmod 755 -- '{}' \+
find "$@" -type f -execdir chmod 644 -- '{}' \+