diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-18 17:01:55 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-18 17:01:55 -0500 |
commit | a44fe6193ee4044724253992e9095fb04ddc5fca (patch) | |
tree | 47f92b0b6193bbf916f41b543b50402a276a36f8 /download.sh | |
parent | f0fb344b694429a44c935029e6e35f0cd049a058 (diff) |
Add some spinner and OK status to the download commands.
Diffstat (limited to 'download.sh')
-rwxr-xr-x | download.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/download.sh b/download.sh index 176207a..6d09ad1 100755 --- a/download.sh +++ b/download.sh @@ -10,12 +10,15 @@ cat packages.csv | while read line; do if [ ! -f "${CACHEFILE}" ]; then - echo "Downloading ${URL}" - wget -nc -O "${LFS_SRC}/${CACHEFILE}" "${URL}" + echo -ne "${PRP}Downloading ${YLW}${URL}${RST}... " + wget -nc -q -O "${LFS_SRC}/${CACHEFILE}" "${URL}" & pid=$! + spinner "$pid" if ! echo "${MD5SUM} ${LFS_SRC}/${CACHEFILE}" | md5sum -c >/dev/null; then rm -f "${LFS_SRC}/${CACHEFILE}" - echo "Verification of ${CACHEFILE} failed! MD5 mismatch!" + echo -e "${GRN}Verification of ${YLW}${CACHEFILE} ${RED}failed! MD5 mismatch!${RST}" exit 1 fi + + echo -e "${GRN}OK${RST}" fi done
\ No newline at end of file |