/ use parameter value instead of hard coded value
lotr bug fix
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user