aboutsummaryrefslogtreecommitdiff
path: root/v2/src/bin/url-for
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xv2/src/bin/url-for10
1 files changed, 6 insertions, 4 deletions
diff --git a/v2/src/bin/url-for b/v2/src/bin/url-for
index 025a546..c31ff84 100755
--- a/v2/src/bin/url-for
+++ b/v2/src/bin/url-for
@@ -1,7 +1,6 @@
#!/bin/sh
set -eu
-
usage() {
cat <<-'EOF'
Usage:
@@ -69,9 +68,12 @@ while getopts 'h' flag; do
done
shift $((OPTIND - 1))
+. src/development/lib.sh
+
+
FILE="${1:-}"
-eval "$(assert-arg "$FILE" 'FILE')"
+eval "$(assert_arg "$FILE" 'FILE')"
-. src/development/config.env
+. src/lib/base-conf
-printf '%s/%s' "$BASE_URL" "$FILE"
+printf '%s%s' "${base_url:-/}" "$FILE"