summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf b/src/conf
index 453f755..5d879fd 100755
--- a/src/conf
+++ b/src/conf
@@ -110,6 +110,7 @@ base_url() {
# src/sub/dirs/file.txt -> ../..
# src/file.txt -> .
printf '%s/\n' "$(dirname -- "$UNPREFIXED")" |
+ sed 's|^\./$|.|' |
sed \
-e 's|[^/]*/|../|g' \
-e 's|/$||'