aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-03-26 15:52:17 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-03-26 15:56:37 -0500
commit4e90c611e6c52be116badd6bf477495dcb370fe8 (patch)
treee4850799201b4c2585ea3e9ef31adbd8d9adc09f
parentda175d07d38bbdec782a8cbaf33c77b25eb9d5b1 (diff)
Reformat MD5SUM information and include OK or FAILURE on line underneath successful download.
-rw-r--r--download.sh5
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