From 4133ae5d3a1dad0ff1e5d452ae16f9682ba7d41e Mon Sep 17 00:00:00 2001 From: bigeagle Date: Tue, 24 May 2016 14:34:33 +0800 Subject: [PATCH] fix downloading bug: it was commented out --- helpers/apt-download | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/helpers/apt-download b/helpers/apt-download index 443d293..bf05eba 100644 --- a/helpers/apt-download +++ b/helpers/apt-download @@ -134,10 +134,9 @@ function apt-download-binary() { fi while [ $downloaded != true ]; do echo "downloading ${pkg_url}" - downloaded=true - # wget -q -O ${dest_filename} ${pkg_url} && { - # echo "${pkg_checksum} ${dest_filename}" | ${checksum_cmd} -c - && downloaded=true # two space for md5sum/sha1sum/sha256sum check format - # } + wget -q -O ${dest_filename} ${pkg_url} && { + echo "${pkg_checksum} ${dest_filename}" | ${checksum_cmd} -c - && downloaded=true # two space for md5sum/sha1sum/sha256sum check format + } done done