X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/a5907a0b0d47d82fd4fccd13e9a7f5ec877cb66e..f4773f6a833f12a37c319ebeafe920b4bb7169ff:/ikiwiki-makerepo?ds=sidebyside diff --git a/ikiwiki-makerepo b/ikiwiki-makerepo index dd23b4638..a97c060c2 100755 --- a/ikiwiki-makerepo +++ b/ikiwiki-makerepo @@ -25,7 +25,7 @@ if [ "$rcs" != mercurial ] && [ "$rcs" != bzr ]; then echo "repository $repository already exists, aborting" >&2 exit 1 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 echo "internal error finding repository abs_path" >&2 exit 1