/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

  1. #!/bin/sh
  2. set -e
  3. if [ "$VCS" = git ]; then
  4. chmod 700 .git
  5. elif [ "$VCS" = hg ]; then
  6. chmod 700 .hg
  7. elif [ "$VCS" = bzr ]; then
  8. chmod 700 .bzr
  9. elif [ "$VCS" = darcs ]; then
  10. chmod 700 _darcs
  11. fi