summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2018-04-04 19:37:08 +0900
committerjohannst <stoelp@eit.uni-kl.de>2018-04-04 19:37:08 +0900
commitddb7d978b83a891e16d037a060bb9bb139152fcf (patch)
treec5af80c7b70befde953ff83883e605d6a37fa90e /bashrc
parentcd13891bb0dcf3e18cd5bd1fe6c5f02769f4794a (diff)
downloaddotfiles-ddb7d978b83a891e16d037a060bb9bb139152fcf.tar.gz
dotfiles-ddb7d978b83a891e16d037a060bb9bb139152fcf.zip
fixed colored printes by quoting the message string, else msg is truncated after first word
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/bashrc b/bashrc
index f7d5d4c..2738760 100644
--- a/bashrc
+++ b/bashrc
@@ -133,20 +133,20 @@ function pline() {
function pinfo() {
local msg=$1
local tag=${2:-INFO}
- pline ${BCol_BrightGreen} $tag ${msg}
+ pline ${BCol_BrightGreen} $tag "${msg}"
}
function pwarn () {
local msg=$1
local tag=${2:-WARN}
- pline ${BCol_YellowOrange} $tag ${msg}
+ pline ${BCol_YellowOrange} $tag "${msg}"
}
function perr() {
local msg=$1
local exit=${2:-exit}
local tag=${3:-ERR}
- pline ${BCol_BrightRed} $tag ${msg}
+ pline ${BCol_BrightRed} $tag "${msg}"
[[ "$exit" == "exit" ]] && exit 1 || return 0
}