summaryrefslogtreecommitdiff
path: root/chmodef
diff options
context:
space:
mode:
Diffstat (limited to 'chmodef')
-rwxr-xr-xchmodef6
1 files changed, 6 insertions, 0 deletions
diff --git a/chmodef b/chmodef
new file mode 100755
index 0000000..446bc23
--- /dev/null
+++ b/chmodef
@@ -0,0 +1,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 -- '{}' \+