|
|
@ -47,24 +47,27 @@ if [ -z "$AGREEMENT" ] ; then
|
|
|
|
AGREEMENT="$DEFAULT_AGREEMENT"
|
|
|
|
AGREEMENT="$DEFAULT_AGREEMENT"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__INTERACTIVE=""
|
|
|
|
|
|
|
|
if [ -t 1 ] ; then
|
|
|
|
|
|
|
|
__INTERACTIVE="1"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
__green() {
|
|
|
|
__green() {
|
|
|
|
if [ -t 1 ] ; then
|
|
|
|
if [ "$__INTERACTIVE" ] ; then
|
|
|
|
printf '\033[1;31;32m'
|
|
|
|
printf '\033[1;31;32m'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
printf -- "$1"
|
|
|
|
printf -- "$1"
|
|
|
|
if [ -t 1 ] ; then
|
|
|
|
if [ "$__INTERACTIVE" ] ; then
|
|
|
|
printf '\033[0m'
|
|
|
|
printf '\033[0m'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
__red() {
|
|
|
|
__red() {
|
|
|
|
if [ -t 1 ] ; then
|
|
|
|
if [ "$__INTERACTIVE" ] ; then
|
|
|
|
printf '\033[1;31;40m'
|
|
|
|
printf '\033[1;31;40m'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
printf -- "$1"
|
|
|
|
printf -- "$1"
|
|
|
|
if [ -t 1 ] ; then
|
|
|
|
if [ "$__INTERACTIVE" ] ; then
|
|
|
|
printf '\033[0m'
|
|
|
|
printf '\033[0m'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|