Commit 0d51c4f3 authored by Angus MacArthur's avatar Angus MacArthur

added optional argument so to override default repo location

parent 5519420e
#!/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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment