diff options
author | johannst <stoelp@eit.uni-kl.de> | 2018-04-04 19:37:08 +0900 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2018-04-04 19:37:08 +0900 |
commit | ddb7d978b83a891e16d037a060bb9bb139152fcf (patch) | |
tree | c5af80c7b70befde953ff83883e605d6a37fa90e | |
parent | cd13891bb0dcf3e18cd5bd1fe6c5f02769f4794a (diff) | |
download | dotfiles-ddb7d978b83a891e16d037a060bb9bb139152fcf.tar.gz dotfiles-ddb7d978b83a891e16d037a060bb9bb139152fcf.zip |
fixed colored printes by quoting the message string, else msg is truncated after first word
-rw-r--r-- | bashrc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |