CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/scripts/smc-fix-permissions.sh
Views: 687
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