/etckeeper/init.d/50vcs-perm
http://github.com/brinkman83/bashrc · Shell · 12 lines · 10 code · 1 blank · 1 comment · 1 complexity · 69d964fa292197af51da343aed9ae9bb MD5 · raw file
- #!/bin/sh
- set -e
- if [ "$VCS" = git ]; then
- chmod 700 .git
- elif [ "$VCS" = hg ]; then
- chmod 700 .hg
- elif [ "$VCS" = bzr ]; then
- chmod 700 .bzr
- elif [ "$VCS" = darcs ]; then
- chmod 700 _darcs
- fi