mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 11:37:19 +02:00
#2871 strip the non-ascii characters
This commit is contained in:
@@ -63,7 +63,9 @@ start_date=$(date -d "$date -$days days" +%s)
|
|||||||
declare -A pubKeyAliasLookup
|
declare -A pubKeyAliasLookup
|
||||||
while IFS= read -r pubKey
|
while IFS= read -r pubKey
|
||||||
do
|
do
|
||||||
alias=$(lncli --network $network --chain $chain getnodeinfo $pubKey | jq '.node.alias')
|
# strip the non-ascii characters with iconv
|
||||||
|
alias=$(lncli --network $network --chain $chain getnodeinfo $pubKey | jq '.node.alias'| iconv -f utf-8 -t ascii -c)
|
||||||
|
# remove quotes
|
||||||
alias=${alias:1:-1}
|
alias=${alias:1:-1}
|
||||||
pubKeyAliasLookup[$pubKey]=$alias
|
pubKeyAliasLookup[$pubKey]=$alias
|
||||||
# echo $pubKey : ${pubKeyAliasLookup[$pubKey]}
|
# echo $pubKey : ${pubKeyAliasLookup[$pubKey]}
|
||||||
|
Reference in New Issue
Block a user