49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
|
$OpenBSD: patch-scripts_kamctl_base,v 1.1 2009/09/12 09:42:04 sthen Exp $
|
||
|
--- scripts/kamctl.base.orig Sat Sep 12 09:04:42 2009
|
||
|
+++ scripts/kamctl.base Sat Sep 12 09:05:05 2009
|
||
|
@@ -522,7 +522,7 @@ USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_htable"
|
||
|
mdbg() {
|
||
|
if [ "0$VERBOSE" -ne 0 ] ; then
|
||
|
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
|
||
|
- echo -e "\033[1m$1\033[0m"
|
||
|
+ printf "\033[1m$1\033[0m\n"
|
||
|
else
|
||
|
echo "$1"
|
||
|
fi
|
||
|
@@ -531,7 +531,7 @@ mdbg() {
|
||
|
|
||
|
mwarn() {
|
||
|
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
|
||
|
- echo -e '\E[37;32m'"\033[1mWARNING: $1\033[0m"
|
||
|
+ printf '\e[37;32m'"\033[1mWARNING: $1\033[0m\n"
|
||
|
else
|
||
|
echo "** WARNING: $1"
|
||
|
fi
|
||
|
@@ -539,7 +539,7 @@ mwarn() {
|
||
|
|
||
|
minfo() {
|
||
|
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
|
||
|
- echo -e '\E[37;33m'"\033[1mINFO: $1\033[0m"
|
||
|
+ printf '\e[37;33m'"\033[1mINFO: $1\033[0m\n"
|
||
|
else
|
||
|
echo "** INFO: $1"
|
||
|
fi
|
||
|
@@ -547,7 +547,7 @@ minfo() {
|
||
|
|
||
|
mecho() {
|
||
|
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
|
||
|
- echo -e "\033[1m$1\033[0m"
|
||
|
+ printf "\033[1m$1\033[0m\n"
|
||
|
else
|
||
|
echo "$1"
|
||
|
fi
|
||
|
@@ -555,7 +555,7 @@ mecho() {
|
||
|
|
||
|
merr() {
|
||
|
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
|
||
|
- echo -e '\E[37;31m'"\033[1mERROR: $1\033[0m"
|
||
|
+ printf '\e[37;31m'"\033[1mERROR: $1\033[0m\n"
|
||
|
else
|
||
|
echo "** ERROR: $1"
|
||
|
fi
|