diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-08-03 14:23:38 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-08-03 14:23:38 -0400 |
commit | 137624775407e433935f68b9ee282723adca1513 (patch) | |
tree | d318b8fdbebac36123239be31a9e739ee406ec3c /ikiwiki-makerepo | |
parent | efcbb32f7c54ad8ffa2e56d52e651c18bd8be55a (diff) | |
parent | d9db5f2def7a1dd2c8e76195df1ea1a988b6b79e (diff) |
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Diffstat (limited to 'ikiwiki-makerepo')
-rwxr-xr-x | ikiwiki-makerepo | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ikiwiki-makerepo b/ikiwiki-makerepo index d249e5e75..b733bd13a 100755 --- a/ikiwiki-makerepo +++ b/ikiwiki-makerepo @@ -4,7 +4,7 @@ set -e rcs="$1" srcdir="$2" repository="$3" - + usage () { echo "usage: ikiwiki-makerepo svn|git srcdir repository" >&2 echo " ikiwiki-makerepo bzr|mercurial srcdir" >&2 @@ -21,6 +21,10 @@ if [ ! -d "$srcdir" ]; then fi if [ "$rcs" != mercurial ] && [ "$rcs" != bzr ]; then + if [ -z "$repository" ]; then + echo "you need to specify both a srcdir and a repository for $rcs" >&2 + usage + fi if [ -e "$repository" ]; then echo "repository $repository already exists, aborting" >&2 exit 1 |