From cde64e52b2dc5358445e64c8da53b02cf93093ba Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Thu, 21 May 2020 23:58:24 -0700 Subject: [PATCH] [node.sh] remove unused function Signed-off-by: Leo Chen --- scripts/node.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scripts/node.sh b/scripts/node.sh index c8c4259f1..e64e6f2e3 100755 --- a/scripts/node.sh +++ b/scripts/node.sh @@ -510,20 +510,6 @@ download_binaries() { (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() { local url=$1 local statuscode=$(curl -I --silent --output /dev/null --write-out "%{http_code}" $url)