diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 12:30:09 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 12:30:09 -0500 |
commit | d9dda5d2e5ebf96c8f8808d38b2ba9a116f0f0b0 (patch) | |
tree | ec45f0cdf1b95ba38d1c8d7f7c429eb60e5bab9d /download.sh | |
parent | 95902f2386e5d79fdcd688aa27737af896b3ac28 (diff) | |
parent | bc2ffe5e6633538e5e34e1867b3a16c844c8b5fe (diff) |
Merge branch 'cleanup' into chapter7
Diffstat (limited to 'download.sh')
-rw-r--r-- | download.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/download.sh b/download.sh index af1dd08..72c250b 100644 --- a/download.sh +++ b/download.sh @@ -10,8 +10,6 @@ cat packages.csv patches.csv | while read -r line; do CACHEFILE="$(basename "${URL}")" if [[ ! -f "${CACHEFILE}" ]]; then - - printf "%b" "${PRP}Downloading ${YLW}${CACHEFILE}${RST}... " download "${URL}" else @@ -20,10 +18,9 @@ cat packages.csv patches.csv | while read -r line; do if ! echo "${MD5SUM} ${LFS}/sources/${CACHEFILE}" | md5sum -c > /dev/null 2>&1; then rm -f "${LFS}/sources/${CACHEFILE}" - printf "%b" "\n${IPRP} MD5SUM ${YLW}${MD5SUM} ${RED}FAILED! MD5 MISMATCH!${RST}\n" + printf "%b" "\n${IPRP} MD5SUM ${YLW}${MD5SUM}${IRED} FAILED! MD5 MISMATCH!${RST}\n" exit 1 fi - - printf "%b" "\n${IPRP} MD5SUM ${YLW}${MD5SUM}${GRN} OK\n${RST}" + printf "%b" "\n${IPRP} MD5SUM ${YLW}${MD5SUM}${IGRN} OK${RST}\n" done |