diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-05-05 14:15:28 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-05-05 14:15:28 -0400 |
commit | 5636b62829131761be8c194e498fecb2bf72bc40 (patch) | |
tree | aaf10e9d81fc2825081965c6e11c363c4ecde092 /ikiwiki-makerepo | |
parent | 72736b5e727a88284d2d021b479a557a99d4b8c0 (diff) |
ikiwiki-makerepo: Avoid using abs_path, as it apparently fails on nonexistant directories with some broken perl versions.
Diffstat (limited to 'ikiwiki-makerepo')
-rwxr-xr-x | ikiwiki-makerepo | 2 |
1 files changed, 1 insertions, 1 deletions
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 |