mirror of
https://github.com/libretro/libretro-super.git
synced 2024-06-02 19:38:30 -04:00
21 lines
239 B
Bash
21 lines
239 B
Bash
# vim: set ts=3 sw=3 noet ft=sh : bash
|
|
|
|
echo_cmd() {
|
|
eval 'echo "$@"'
|
|
eval "$@"
|
|
return $?
|
|
}
|
|
|
|
color() {
|
|
[ -n "$NO_COLOR" ] && return
|
|
|
|
echo -ne "\e[0;${1:-0}m"
|
|
}
|
|
|
|
|
|
if [ ! -t 1 ]; then
|
|
if [ -z "$FORCE_COLOR" ]; then
|
|
NO_COLOR=1
|
|
fi
|
|
fi
|