mirror of
https://github.com/aljazceru/nigiri.git
synced 2026-02-21 14:24:23 +01:00
13 lines
545 B
Bash
Executable File
13 lines
545 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
LATEST_VERSION=$(curl --silent "https://api.github.com/repos/blockstream/liquid/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
|
VERSION_NAME=$(echo $LATEST_VERSION | sed '1,/\./s/\./\-/')
|
|
|
|
wget -qO- https://github.com/Blockstream/liquid/releases/download/$LATEST_VERSION/$VERSION_NAME-x86_64-linux-gnu.tar.gz | tar xvz -C /tmp
|
|
|
|
mv /tmp/$VERSION_NAME/bin/liquidd /usr/bin/liquidd
|
|
mv /tmp/$VERSION_NAME/bin/liquid-cli /usr/bin/liquid-cli
|
|
mv /tmp/$VERSION_NAME/bin/liquid-tx /usr/bin/liquid-tx
|
|
|
|
rm -rf /tmp |