extract_utils: Add a bit of color to the output
Change-Id: I2a779362121645d6d1cee7858a305425190eab56
diff --git a/build/tools/extract_utils.sh b/build/tools/extract_utils.sh
index dc80470..6ae2ea2 100755
--- a/build/tools/extract_utils.sh
+++ b/build/tools/extract_utils.sh
@@ -1650,7 +1650,7 @@
done
if [ "${FOUND}" = false ]; then
- printf ' !! %s: file not found in source\n' "${BLOB_DISPLAY_NAME}"
+ colored_echo red " !! ${BLOB_DISPLAY_NAME}: file not found in source"
continue
fi
fi
@@ -1695,8 +1695,8 @@
printf " + Fixed up %s\n" "${BLOB_DISPLAY_NAME}"
# Now sanity-check the spec for this blob.
if [ "${KANG}" = false ] && [ "${FIXUP_HASH}" = "x" ] && [ "${HASH}" != "x" ]; then
- printf "WARNING: The %s file was fixed up, but it is pinned.\n" ${BLOB_DISPLAY_NAME}
- printf "This is a mistake and you want to either remove the hash completely, or add an extra one.\n"
+ colored_echo yellow "WARNING: The ${BLOB_DISPLAY_NAME} file was fixed up, but it is pinned."
+ colored_echo yellow "This is a mistake and you want to either remove the hash completely, or add an extra one."
fi
fi