FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
feathercore-node/scripts/download at master · FeatherCoin/feathercore-node · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
FeatherCoin
/
feathercore-node
Public
forked from
bitpay/bitcore-node
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
feathercore-node
/
scripts
/
download
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
54 lines (43 loc) · 1.22 KB
Breadcrumbs
feathercore-node
/
scripts
/
download
Copy path
File metadata and controls
executable file
·
54 lines (43 loc) · 1.22 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!
/bin/bash
set
-e
root_dir=
"
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
&&
pwd
)
/..
"
platform=
`
uname -a
|
awk
'
{print tolower($1)}
'
`
arch=
`
uname -m
`
version=
"
0.13.2
"
url=
"
https://downloads.feathercoin.com/
"
if
[
"
${platform}
"
==
"
linux
"
]
;
then
if
[
"
${arch}
"
==
"
x86_64
"
]
;
then
tarball_name=
"
feathercore-
${version}
-linux64.tar.gz
"
fi
else
echo
"
Feathercoin binary distribution not available for platform and architecture
"
exit
-1
fi
binary_url=
"
${url}
/
${tarball_name}
"
download_bitcoind
() {
cd
"
${root_dir}
/bin
"
echo
"
Downloading feathercoin:
${binary_url}
"
is_curl=true
if
hash
curl
2>
/dev/null
;
then
curl --fail -I
$binary_url
>
/dev/null
2>&1
else
is_curl=false
wget --server-response --spider
$binary_url
>
/dev/null
2>&1
fi
if
test
$?
-eq 0
;
then
if
[
"
${is_curl}
"
=
true
]
;
then
curl -L
$binary_url
>
$tarball_name
else
wget
$binary_url
fi
if
test
-e
"
${tarball_name}
"
;
then
echo
"
Unpacking feathercoin distribution
"
tar -xvzf
$tarball_name
return
;
fi
fi
echo
"
Feathercoin binary distribution could not be downloaded
"
exit
-1
}
download_bitcoind
exit
0
Back
|
FazBrowse Home
|
New Git URL