aboutsummaryrefslogtreecommitdiffstats
path: root/urnresolve
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2022-01-21 19:35:42 +0000
committerepoch <epoch@hack.thebackupbox.net>2022-01-21 19:35:42 +0000
commit9ae383cdf96656e03fdfdfe4d38ba6ee40c4512d (patch)
tree4d262fb10eeff49dbdc5e4a284134333dd607fe3 /urnresolve
parentc6b3499c83bd95bd111f3c658c6df68c4381992f (diff)
downloaduritools-9ae383cdf96656e03fdfdfe4d38ba6ee40c4512d.tar.gz
uritools-9ae383cdf96656e03fdfdfe4d38ba6ee40c4512d.zip
removed the share/urn stuff. that lives in a repo named "data". uri title now checks for data files. urititle does a unshorten attempt first.
Diffstat (limited to 'urnresolve')
-rwxr-xr-xurnresolve10
1 files changed, 5 insertions, 5 deletions
diff --git a/urnresolve b/urnresolve
index d59558f..4da8671 100755
--- a/urnresolve
+++ b/urnresolve
@@ -45,12 +45,12 @@ if [ "$nid" = "mitre" ];then
fi
fi
-if [ "$nid" = "fcc" ];then
- if [ "$nss" = "frs" ];then
- grep "^$nss2\s" $PREFIX/share/urn/fcc:frs | cut -f2
- fi
-fi
if [ "$nid" = "btih" ];then
btih2magnet "$nss"
fi
+
+file="/usr/local/share/urn/$nid:$nss"
+if [ -e "$file" ];then
+ grep "^${nss2}\s" "$file" | cut -f2-
+fi