github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/examples/cli_test/scripts/header.sh (about) 1 #!/usr/bin/env bash 2 # 3 #Copyright yeasy. 2017 All Rights Reserved. 4 # 5 #SPDX-License-Identifier: Apache-2.0 6 # 7 8 ## DO NOT MODIFY THE FOLLOWING PART, UNLESS YOU KNOW WHAT IT MEANS ## 9 echo_r () { 10 [ $# -ne 1 ] && return 0 11 echo -e "\033[31m$1\033[0m" 12 } 13 echo_g () { 14 [ $# -ne 1 ] && return 0 15 echo -e "\033[32m$1\033[0m" 16 } 17 echo_y () { 18 [ $# -ne 1 ] && return 0 19 echo -e "\033[33m$1\033[0m" 20 } 21 echo_b () { 22 [ $# -ne 1 ] && return 0 23 echo -e "\033[34m$1\033[0m" 24 }