aboutsummaryrefslogtreecommitdiffstats
path: root/urnresolve
diff options
context:
space:
mode:
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