X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/53b1c6f559c1d09fbdbc28c8e4d5090dd455cd26..6a2f3ef4bd0649608592331ae52ca6895abdd2c4:/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