etc-gentoo/etckeeper/init.d/50vcs-perm

13 lines
197 B
Bash
Executable 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