-
Notifications
You must be signed in to change notification settings - Fork 0
/
dl-dogecoin.sh
29 lines (21 loc) · 900 Bytes
/
dl-dogecoin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env sh
DOGECOIN_VERSION="1.14.6"
case `uname -m` in
x86_64)
archive="https://github.com/dogecoin/dogecoin/releases/download/v${DOGECOIN_VERSION}/dogecoin-${DOGECOIN_VERSION}-x86_64-linux-gnu.tar.gz"
;;
i386|i686)
archive="https://github.com/dogecoin/dogecoin/releases/download/v${DOGECOIN_VERSION}/dogecoin-${DOGECOIN_VERSION}-i686-pc-linux-gnu.tar.gz"
;;
armv6l|armv7l)
archive="https://github.com/dogecoin/dogecoin/releases/download/v${DOGECOIN_VERSION}/dogecoin-${DOGECOIN_VERSION}-arm-linux-gnueabihf.tar.gz"
;;
aarch64)
archive="https://github.com/dogecoin/dogecoin/releases/download/v${DOGECOIN_VERSION}/dogecoin-${DOGECOIN_VERSION}-aarch64-linux-gnu.tar.gz"
;;
*)
echo "Unsupported architecture"
exit 1
esac
wget -O - "$archive" | tar -xvzf - -C /opt
mv dogecoin-* dogecoin