[node.sh] remove unused function

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3082/head
Leo Chen 5 years ago
parent 7839091fa9
commit cde64e52b2
  1. 14
      scripts/node.sh

@ -510,20 +510,6 @@ download_binaries() {
(cd "${outdir}" && exec openssl sha256 $(cut -c35- md5sum.txt)) > "${outdir}/harmony-checksums.txt" (cd "${outdir}" && exec openssl sha256 $(cut -c35- md5sum.txt)) > "${outdir}/harmony-checksums.txt"
} }
check_free_disk() {
local dir
dir="${1:-.}"
local free_disk=$(df -BG $dir | tail -n 1 | awk ' { print $4 } ' | tr -d G)
# need at least 50G free disk space
local need_disk=50
if [ $free_disk -gt $need_disk ]; then
return 0
else
return 1
fi
}
_curl_check_exist() { _curl_check_exist() {
local url=$1 local url=$1
local statuscode=$(curl -I --silent --output /dev/null --write-out "%{http_code}" $url) local statuscode=$(curl -I --silent --output /dev/null --write-out "%{http_code}" $url)

Loading…
Cancel
Save