Bail if both srcdir and repository are not specified.
parent
eadff687ab
commit
d9db5f2def
|
@ -12,6 +12,8 @@ ikiwiki (2.60) UNRELEASED; urgency=low
|
||||||
* ikiwiki-update-wikilist: Add -r switch to remove. Default behavior is now
|
* ikiwiki-update-wikilist: Add -r switch to remove. Default behavior is now
|
||||||
always to add.
|
always to add.
|
||||||
* Start moving admin preferences from the web interface to the setup file.
|
* Start moving admin preferences from the web interface to the setup file.
|
||||||
|
* ikiwiki-makerepo: Bail if both srcdir and repository are not specified.
|
||||||
|
Closes: #493628
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Mon, 21 Jul 2008 11:35:46 -0400
|
-- Joey Hess <joeyh@debian.org> Mon, 21 Jul 2008 11:35:46 -0400
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,10 @@ if [ ! -d "$srcdir" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$rcs" != mercurial ] && [ "$rcs" != bzr ]; then
|
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
|
if [ -e "$repository" ]; then
|
||||||
echo "repository $repository already exists, aborting" >&2
|
echo "repository $repository already exists, aborting" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue