X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/4558457402a4ab6bc795589a2e400fa66144f76e..126952bd339bac590beae2324ff0f399883bc256:/ikiwiki-makerepo?ds=sidebyside diff --git a/ikiwiki-makerepo b/ikiwiki-makerepo index 310535030..7f82e7177 100755 --- a/ikiwiki-makerepo +++ b/ikiwiki-makerepo @@ -29,7 +29,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}; $r=shift; $r=~s/\/*$//; print abs_path($r)' "$repository")" + repository="$(perl -e 'use Cwd; $r=shift; $r=getcwd.q{/}.$r if $r!~m!^/!; print $r' "$repository")" if [ -z "$repository" ]; then echo "internal error finding repository abs_path" >&2 exit 1