diff options
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 |