Files
LEMPer/scripts/fixpermission.sh
2019-11-22 11:24:42 +07:00

9 lines
206 B
Bash
Executable File

#!/bin/sh
# usage:
#####################################################
# directory
[ "$1" = "" ] && return 0
find "$1" -type d -print0 | xargs -0 chmod 755
find "$1" -type f -print0 | xargs -0 chmod 644