From 7a3fd8b4c3f44287a4c60307eaebaf988f47b997 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Tue, 8 Apr 2025 14:40:34 -0500 Subject: [PATCH] / use parameter value instead of hard coded value lotr bug fix --- dots/bin/lordOfTheRing.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/bin/lordOfTheRing.sh b/dots/bin/lordOfTheRing.sh index fc717a1..bf53995 100755 --- a/dots/bin/lordOfTheRing.sh +++ b/dots/bin/lordOfTheRing.sh @@ -83,7 +83,7 @@ do # this is a multi-line value, so we need to do some more trickery, to get it working… # https://www.baeldung.com/linux/print-lines-between-two-patterns # https://unix.stackexchange.com/questions/471619/get-everything-after-first-occurence-of-substring - value=$(awk '/secret={"UID":/{ f = 1 } /mtime=/{ f = 0 } f' /home/poq/.local/share/keyrings/aTmp.keyring | perl -pe 's/.*?secret=//'); + value=$(awk '/secret={"UID":/{ f = 1 } /mtime=/{ f = 0 } f' ${keyring_file} | perl -pe 's/.*?secret=//'); echo ${value} > ${tf_secret_proton_account_singular}; elif [[ ${secret_to_get} == "proton_account_multiple" ]] ; then echo "storing proton multiple value"