mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
scripts/common.sh: Add printWarning() helper
This commit is contained in:
parent
110e0e1f25
commit
203ebf89bb
@ -24,10 +24,12 @@ then
|
|||||||
export TERM="${TERM:-xterm}"
|
export TERM="${TERM:-xterm}"
|
||||||
function printTask() { echo "$(tput bold)$(tput setaf 2)$1$(tput setaf 7)"; }
|
function printTask() { echo "$(tput bold)$(tput setaf 2)$1$(tput setaf 7)"; }
|
||||||
function printError() { >&2 echo "$(tput setaf 1)$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)"; }
|
function printLog() { echo "$(tput setaf 3)$1$(tput setaf 7)"; }
|
||||||
else
|
else
|
||||||
function printTask() { echo "$(tput bold)$(tput setaf 2)$1$(tput sgr0)"; }
|
function printTask() { echo "$(tput bold)$(tput setaf 2)$1$(tput sgr0)"; }
|
||||||
function printError() { >&2 echo "$(tput setaf 1)$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)"; }
|
function printLog() { echo "$(tput setaf 3)$1$(tput sgr0)"; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user