summaryrefslogtreecommitdiffstats
path: root/ci/tools.sh
blob: 4eed361bc30bad9f0c74fe9770c718defe167681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
##############################################################################
# Copyright (c) 2017 Nokia and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################


#######################################
# Echo printing in yellow bold color
# Arguments:
#   Same as for echo
# Returns:
#   None
#######################################
function echo_info { (
    # don't clutter the script output with the xtrace of the echo command
    { set +x; } 2> /dev/null

    yellow_bold='\033[1;33m'
    color_off='\033[0m'
    echo "${@:1:($#-1)}" -e "$yellow_bold${@: -1}$color_off";
  )
}