summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-11-17 20:59:16 -0300
committerEuAndreh <eu@euandre.org>2024-11-17 20:59:16 -0300
commitfd394f1d715aa9f5e595abf6685a8a1b2bdf60c8 (patch)
tree3a223a2c06095ffeebc9a0df44a6dcd910b45d0f /src
parentImprove support for multiple collections (diff)
downloadmkwb-fd394f1d715aa9f5e595abf6685a8a1b2bdf60c8.tar.gz
mkwb-fd394f1d715aa9f5e595abf6685a8a1b2bdf60c8.tar.xz
src/conf: Adapt base_url() to allow ../
Diffstat (limited to '')
-rwxr-xr-xsrc/conf3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/conf b/src/conf
index a5804b0..50c5b48 100755
--- a/src/conf
+++ b/src/conf
@@ -112,8 +112,7 @@ base_url() {
printf '%s/\n' "$(dirname -- "$UNPREFIXED")" |
sed \
-e 's|[^/]*/|../|g' \
- -e 's|/$||' \
- -e 's|^\.\.$|.|'
+ -e 's|/$||'
}
last3dirnames() {