/ use parameter value instead of hard coded value

lotr bug fix
This commit is contained in:
committer@tuxwarrior
2025-04-08 14:40:34 -05:00
parent 7885d4537e
commit 7a3fd8b4c3

View File

@@ -83,7 +83,7 @@ do
# this is a multi-line value, so we need to do some more trickery, to get it working… # 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://www.baeldung.com/linux/print-lines-between-two-patterns
# https://unix.stackexchange.com/questions/471619/get-everything-after-first-occurence-of-substring # 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}; echo ${value} > ${tf_secret_proton_account_singular};
elif [[ ${secret_to_get} == "proton_account_multiple" ]] ; then elif [[ ${secret_to_get} == "proton_account_multiple" ]] ; then
echo "storing proton multiple value" echo "storing proton multiple value"