repo: uritools
action: commit
revision: 
path_from: 
revision_from: 7f25abd6baad592e22749e76f7ba2674df4c9e30:
path_to: 
revision_to: 
git.thebackupbox.net
uritools
git clone git://git.thebackupbox.net/uritools
commit 7f25abd6baad592e22749e76f7ba2674df4c9e30
Author: epoch 
Date:   Wed Nov 29 12:17:19 2023 -0600

    prepend $PREFIX to the db location of RFCs so urititle works without root too.

diff --git a/urititle b/urititle
index 56254ee3680594b015301f17c2f41c4cf2578b07..
index ..1be01b8ca742c2c2581e2cfd352b50e45044ef6c 100755
--- a/urititle
+++ b/urititle
@@ -137,7 +137,7 @@ urn)
   nss2="$(printf "%s\n" "$uri" | cut -d: -f4)"
   if [ "$nid" = "ietf" ];then
     if [ "$nss" = "rfc" ];then
-      cat "/var/db/rfc/rfc${nss2}.json" | jq .title
+      cat "${PREFIX}/var/db/rfc/rfc${nss2}.json" | jq .title
       exit 0
     fi
   fi

-----END OF PAGE-----