Symlink post-receive hook to all repositories in a directory
By: a guest | Jul 26th, 2010 | Syntax:
Bash | Size: 0.19 KB | Hits: 81 | Expires: Never
#!/bin/sh
for dir in `ls -d */`; do
target="$PWD"/"$dir""hooks/post-receive";
if [ -f $target ]; then
rm $target;
fi;
ln -s $PWD/post-receive $target;
done;