Skip to content

Commit

Permalink
Merge pull request raspibolt#772 from bmml1/fix-electrs-version-check
Browse files Browse the repository at this point in the history
fix command to retrieve currently installed electrs version
  • Loading branch information
Stadicus authored Oct 29, 2021
2 parents f987fbb + 5c51dc5 commit 37653fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/20-raspibolt-welcome
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ if [ -z "${electrs_running##*inactive*}" ]; then
electrsversion_color="${color_red}"
else
electrs_running="up"
electrspi=$(echo '{"jsonrpc": "2.0", "method": "server.version", "params": [ "raspibolt", "1.4" ], "id": 0}' | netcat 127.0.0.1 50001 -q 1 | jq -r '.result[0]' | awk '{print "v"$2}')
electrspi=$(echo '{"jsonrpc": "2.0", "method": "server.version", "params": [ "raspibolt", "1.4" ], "id": 0}' | netcat 127.0.0.1 50001 -q 1 | jq -r '.result[0]' | awk '{print "v"substr($1,9)}')
if [ "$electrspi" = "$electrsgit" ]; then
electrsversion="$electrspi"
electrsversion_color="${color_green}"
Expand Down

0 comments on commit 37653fa

Please sign in to comment.