summaryrefslogtreecommitdiff
path: root/urnresolve
diff options
context:
space:
mode:
Diffstat (limited to 'urnresolve')
-rwxr-xr-xurnresolve3
1 files changed, 2 insertions, 1 deletions
diff --git a/urnresolve b/urnresolve
index 4e6a39b..d59558f 100755
--- a/urnresolve
+++ b/urnresolve
@@ -1,4 +1,5 @@
#!/bin/sh
+export PREFIX="${PREFIX:-/usr/local}"
echo "urnstart: working on:" "$1" >&2
urn="$(printf '%s\n' "$1" | cut -d: -f1)"
if [ "$urn" != "urn" ];then
@@ -35,7 +36,7 @@ if [ "$nid" = "phrack" ];then
fi
if [ "$nid" = "xkcd" ];then
- echo "https://xkcd.com/${nss}"
+ echo "https://xkcd.com/${nss}/"
fi
if [ "$nid" = "mitre" ];then