X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/514515d641ebe554482b0ae746cbb2ab8b64f7dc..ddfae2e7744dde1196eeeebf0746397e8bfb3cf8:/invirt-configure-git-hooks diff --git a/invirt-configure-git-hooks b/invirt-configure-git-hooks index bed41b5..d84c1d3 100755 --- a/invirt-configure-git-hooks +++ b/invirt-configure-git-hooks @@ -4,7 +4,7 @@ set -e set -u link_to() { - rm -rf "$1" + rm -r "$1" ln -s "$2" "$1" } @@ -15,7 +15,7 @@ link_to "$package_base/packages.git/hooks" "$hook_base/super" for pkg in "$package_base"/*/*.git; do case "$pkg" in - "$package_base/packages/*.git") link_to "$pkg/hooks" "$hook_base/sub" ;; + "$package_base"/packages/*.git) link_to "$pkg/hooks" "$hook_base/sub" ;; *) link_to "$pkg/hooks" "$hook_base/other" ;; esac done