blob: 608d27aa26b64d22c5300e06584e6e30ffa2f9c0 [file] [log] [blame]
[email protected]8a3e68a62010-02-19 19:03:301#!/bin/bash
[email protected]279d79f12012-04-25 01:25:402# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]8a3e68a62010-02-19 19:03:303# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
[email protected]49da58e2010-03-29 14:38:096TPUT=$(which tput 2>/dev/null)
[email protected]8a3e68a62010-02-19 19:03:307if test -x "$TPUT" && $TPUT setaf 1 >/dev/null ; then
8 RED="$($TPUT setaf 1)"
9 NORMAL="$($TPUT op)"
10else
11 RED=
12 NORMAL=
13fi
14
15warn() {
16 echo "${RED}WARNING:${NORMAL} $@"
17}