summaryrefslogtreecommitdiff
path: root/ikiwiki-makerepo
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-02-24 17:56:39 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-02-24 17:56:39 -0500
commitaf20ee2b76c9916ab5afaf59b0b2eb0ee7ac66df (patch)
tree54efb90f383f94a172c83ce6f35a90e95060a68a /ikiwiki-makerepo
parent08192f449dc61ea2e2f51045773f80ef5b5a55c6 (diff)
* ikiwiki-makerepo: Don't fail if the third argument ends in a slash.
Diffstat (limited to 'ikiwiki-makerepo')
-rwxr-xr-xikiwiki-makerepo2
1 files changed, 1 insertions, 1 deletions
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