mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-23 22:47:03 +01:00
#2871 strip the non-ascii characters
This commit is contained in:
parent
2bb53ceb96
commit
ff3007c782
1 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,9 @@ start_date=$(date -d "$date -$days days" +%s)
|
|||
declare -A pubKeyAliasLookup
|
||||
while IFS= read -r pubKey
|
||||
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}
|
||||
pubKeyAliasLookup[$pubKey]=$alias
|
||||
# echo $pubKey : ${pubKeyAliasLookup[$pubKey]}
|
||||
|
|
Loading…
Add table
Reference in a new issue