repo: uritools
action: commit
revision: 
path_from: 
revision_from: 6dc4ece3b894b24dee0e1062c22f6c1bf205604a:
path_to: 
revision_to: 
git.thebackupbox.net
uritools
git clone git://git.thebackupbox.net/uritools
commit 6dc4ece3b894b24dee0e1062c22f6c1bf205604a
Author: epoch 
Date:   Tue Dec 22 07:05:47 2020 +0000

    urigetline now uses $uristart_config, if set, to find the config file

diff --git a/urigetline b/urigetline
index 6d20320ebb871a80a62a9e090b21a9314d367aa0..
index ..3f6bb51bfc274d2aeadd0fae8a0e96fe9359ad9d 100755
--- a/urigetline
+++ b/urigetline
@@ -3,8 +3,12 @@ uri="$1"
 ### old way.
 # line="$(grep "^${scheme}:" ~/.config/uristart.conf | cut -d: -f2- | sed 's/^[ \t]*//g' | sed 's/\\/\\\\/g')"

+if [ ! "$uristart_config" ];then
+  uristart_config=~/.config/uristart.conf
+fi
+
 ### fancy way.
-grep '^[^#]' ~/.config/uristart.conf \
+grep '^[^#]' "$uristart_config" \
   | while read -r l;do
         uritmp="$uri"
         uritmp="$(printf "%s\n" "$l" \

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