Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
midPoint_container/midpoint-obsolete/test/common.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
62 lines (52 sloc)
815 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BOLD='\033[1m' | |
UNDERLINE='\033[4m' | |
LRED='\033[1;31m' | |
LGREEN='\033[1;32m' | |
LCYAN='\033[1;36m' | |
YELLOW='\033[1;33m' | |
NC='\033[0m' | |
function lred () { | |
if [ -z "$NOCOLOR" ]; then | |
echo -e "${LRED}$*${NC}" | |
else | |
echo "$*" | |
fi | |
} | |
function lgreen () { | |
if [ -z "$NOCOLOR" ]; then | |
echo -e "${LGREEN}$*${NC}" | |
else | |
echo "$*" | |
fi | |
} | |
function lcyan () { | |
if [ -z "$NOCOLOR" ]; then | |
echo -e "${LCYAN}$*${NC}" | |
else | |
echo "$*" | |
fi | |
} | |
function yellow () { | |
if [ -z "$NOCOLOR" ]; then | |
echo -e "${YELLOW}$*${NC}" | |
else | |
echo "$*" | |
fi | |
} | |
function boldUnderline () { | |
if [ -z "$NOCOLOR" ]; then | |
echo -e "${BOLD}${UNDERLINE}$*${NC}" | |
else | |
echo "$*" | |
fi | |
} | |
function heading () { | |
lcyan "=== $*" | |
} | |
function ok () { | |
lgreen "==> $*" | |
} | |
function error () { | |
lred "$*" | |
} | |