123456789101112131415161718192021222324 |
- #!/bin/sh
- __b='\033[1m'
- __clr='\033[0m'
- __red='\033[31m'
- __gre='\033[32m'
- __yel='\033[33m'
- __blu='\033[34m'
- __pur='\033[35m'
- __cya='\033[36m'
- __whi='\033[37m'
- alias initprint='>/dev/console printf'
- failed() { initprint '%b%s%b\n' "${__b}${__red}" 'failed' "${__clr}"; }
- error() { initprint '%bERROR:%b %s\n' "${__b}${__red}" "${__clr}" "$*"; }
- warn() { initprint '%bWARNING:%b %s\n' "${__b}${__yel}" "${__clr}" "$*"; }
- msg() { initprint '%b * %b%s%b\n' "${__b}${__pur}" "${__whi}" "$*" "${__clr}"; }
- ok() { initprint '%b%s%b\n' "${__b}${__gre}" 'ok' "${__clr}"; }
|