fix stuck tests, be removing -it from exec

This commit is contained in:
dni ⚡ 2023-01-25 11:09:41 +01:00
commit 09f879ca79

View file

@ -21,7 +21,7 @@ lncli-sim() {
get-eclair-pubkey() { get-eclair-pubkey() {
while true; do while true; do
pubkey=$(docker exec -it lnbits-legend-eclair-1 curl http://localhost:8080/getinfo -X POST -u :lnbits 2> /dev/null | jq -r .nodeId 2> /dev/null) pubkey=$(docker exec lnbits-legend-eclair-1 curl http://localhost:8080/getinfo -X POST -u :lnbits 2> /dev/null | jq -r .nodeId 2> /dev/null)
pubkeyPrefix=$(echo $pubkey | cut -c1,2) pubkeyPrefix=$(echo $pubkey | cut -c1,2)
if [[ "$pubkeyPrefix" == "02" || "$pubkeyPrefix" == "03" ]]; then if [[ "$pubkeyPrefix" == "02" || "$pubkeyPrefix" == "03" ]]; then
echo $pubkey echo $pubkey