diff options
Diffstat (limited to 'download.sh')
-rw-r--r-- | download.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/download.sh b/download.sh index 2cec438..5f5c608 100644 --- a/download.sh +++ b/download.sh @@ -16,8 +16,11 @@ cat packages.csv patches.csv | while read -r line; do download "${URL}" if ! echo "${MD5SUM} ${LFS}/sources/${CACHEFILE}" | md5sum -c > /dev/null 2>&1; then rm -f "${LFS}/sources/${CACHEFILE}" - printf "%b" "${GRN}Verification of ${YLW}${CACHEFILE} ${RED}FAILED! MD5 MISMATCH!${RST}\n" + printf "%b" "\n${IPRP} MD5SUM ${YLW}${MD5SUM} ${RED}FAILED! MD5 MISMATCH!${RST}\n" exit 1 fi + + printf "%b" "\n${IPRP} MD5SUM ${YLW}${MD5SUM}${GRN} OK\n${RST}" + fi done |