From f12ce8b81d584b435813b6db8401a41bd91a64d0 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sat, 10 Apr 2021 14:36:50 +0100 Subject: [PATCH] extract_utils: Add a bit of color to the output Change-Id: I2a779362121645d6d1cee7858a305425190eab56 --- extract_utils.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extract_utils.sh b/extract_utils.sh index 3ccf854..de62732 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -1592,7 +1592,7 @@ function extract() { 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 @@ -1637,8 +1637,8 @@ function extract() { 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