blob: 8efbd40c0f2b1c301faf20fced16d88f6fefef5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function rchmod --description 'Recursively reset perms of files and folders' -a dmode -a fmode
if not command -sq 'find'
echo "Can't find find."
return 1
end
if test (count $argv) -lt 2
echo "Missing arguments."
return 1
end
find . -type d -exec chmod $dmode {} +
find . -type f -exec chmod $fmode {} +
end
|