diff options
author | epoch <epoch@hack.thebackupbox.net> | 2022-01-21 19:35:42 +0000 |
---|---|---|
committer | epoch <epoch@hack.thebackupbox.net> | 2022-01-21 19:35:42 +0000 |
commit | 9ae383cdf96656e03fdfdfe4d38ba6ee40c4512d (patch) | |
tree | 4d262fb10eeff49dbdc5e4a284134333dd607fe3 /urnresolve | |
parent | c6b3499c83bd95bd111f3c658c6df68c4381992f (diff) | |
download | uritools-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-x | urnresolve | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |