Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/scripts/smc-fix-permissions.sh
Views: 275
1
#!/usr/bin/env bash
2
# fixes the permissions to 022
3
DIR=${1:-.}
4
time chmod a+r -R $DIR && find $DIR -perm /u+x -execdir chmod a+x {} \; && echo "OK"
5
6