[Lunar-commits] <lunar> Strip a possible / off $MOONBASE.
Auke Kok
sofar at foo-projects.org
Thu Jul 5 09:34:24 CEST 2012
commit f6227e0f8d0d0b079368ee7ce75c26c2daa0234a
Author: Auke Kok <sofar at foo-projects.org>
Date: Thu Jul 5 00:34:24 2012 -0700
Strip a possible / off $MOONBASE.
---
libs/modules.lunar | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/modules.lunar b/libs/modules.lunar
index a0b3f66..ba6c4ba 100644
--- a/libs/modules.lunar
+++ b/libs/modules.lunar
@@ -120,7 +120,7 @@ create_module_index() {
# do have to make sure MOONBASE is coherent and tidy though
debug_msg "Regenerating \$MODULE_INDEX manually..."
find $MOONBASE -type f -name DETAILS ! -regex "$MOONBASE/zlocal/.*" \
- -printf "%h\n" | sed "s:$MOONBASE/::g;s:^\(.*\)/\(.*\)$:\2\:\1:g" > $TMP_INDEX
+ -printf "%h\n" | sed "s:$MOONBASE::;s:^/::;s:^\(.*\)/\([^/]*\)$:\2\:\1:" > $TMP_INDEX
fi
# this should be safe enough:
More information about the Lunar-commits
mailing list