diff options
-rwxr-xr-x | support/rewrite-hooks.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/support/rewrite-hooks.sh b/support/rewrite-hooks.sh index 6de4dfc..1d0542e 100755 --- a/support/rewrite-hooks.sh +++ b/support/rewrite-hooks.sh @@ -1,7 +1,10 @@ #!/bin/bash +# $1 is an optional argument specifying the location of the repositories directory. +# Defaults to /home/git/repositories if not provided + home_dir="/home/git" -src="$home_dir/repositories" +src=${1:-"$home_dir/repositories"} for dir in `ls "$src/"` do |