* ikiwiki-makerepo: Don't fail if the third argument ends in a slash.

master
Joey Hess 2008-02-24 17:56:39 -05:00
parent 08192f449d
commit af20ee2b76
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@ -49,6 +49,7 @@ ikiwiki (2.40) UNRELEASED; urgency=low
* Fix links generated by preprocessor directives when previewing. * Fix links generated by preprocessor directives when previewing.
* inline: When forcing urls absolute for rss feeds, skip mailto and other * inline: When forcing urls absolute for rss feeds, skip mailto and other
such urls. such urls.
* ikiwiki-makerepo: Don't fail if the third argument ends in a slash.
-- Josh Triplett <josh@freedesktop.org> Sun, 10 Feb 2008 13:18:58 -0800 -- Josh Triplett <josh@freedesktop.org> Sun, 10 Feb 2008 13:18:58 -0800

View File

@ -25,7 +25,7 @@ if [ "$rcs" != mercurial ] && [ "$rcs" != bzr ]; then
echo "repository $repository already exists, aborting" >&2 echo "repository $repository already exists, aborting" >&2
exit 1 exit 1
fi fi
repository="$(perl -e 'use Cwd q{abs_path}; print abs_path(shift)' $repository)" repository="$(perl -e 'use Cwd q{abs_path}; $r=shift; $r=~s/\/*$//; print abs_path($r)' $repository)"
if [ -z "$repository" ]; then if [ -z "$repository" ]; then
echo "internal error finding repository abs_path" >&2 echo "internal error finding repository abs_path" >&2
exit 1 exit 1