From 203ebf89bb8f8932bda0d18ab9e2d60783d409cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Thu, 14 Jan 2021 14:39:59 +0100 Subject: [PATCH] scripts/common.sh: Add printWarning() helper --- scripts/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/common.sh b/scripts/common.sh index 1cca52f4e..7df8b85db 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -24,10 +24,12 @@ then export TERM="${TERM:-xterm}" function printTask() { echo "$(tput bold)$(tput setaf 2)$1$(tput setaf 7)"; } function printError() { >&2 echo "$(tput setaf 1)$1$(tput setaf 7)"; } + function printWarning() { >&2 echo "$(tput setaf 11)$1$(tput setaf 7)"; } function printLog() { echo "$(tput setaf 3)$1$(tput setaf 7)"; } else function printTask() { echo "$(tput bold)$(tput setaf 2)$1$(tput sgr0)"; } function printError() { >&2 echo "$(tput setaf 1)$1$(tput sgr0)"; } + function printWarning() { >&2 echo "$(tput setaf 11)$1$(tput sgr0)"; } function printLog() { echo "$(tput setaf 3)$1$(tput sgr0)"; } fi