From 792806fd1f80fb7d777db7325979d62b8c9f90bc Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Tue, 8 Dec 2015 04:39:24 -0800 Subject: Latest post: fix missing color code and newline in message --- source/blog/2015-12-08-safeguarding-git-repos-against-accidental-rm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blog/2015-12-08-safeguarding-git-repos-against-accidental-rm.md b/source/blog/2015-12-08-safeguarding-git-repos-against-accidental-rm.md index 8a5f1ae6..697b824e 100644 --- a/source/blog/2015-12-08-safeguarding-git-repos-against-accidental-rm.md +++ b/source/blog/2015-12-08-safeguarding-git-repos-against-accidental-rm.md @@ -31,7 +31,7 @@ rm () { for node; do # -f, --force hasn't been specified && node is a git repo [[ -z $force && -e $node/.git ]] && { - printf "\e[31m'%s' is a git repo -- won't remove without the -f or --force option" $node + printf "\e[31m'%s' is a git repo -- won't remove without the -f or --force option\e[0m\n" $node return 1 } done -- cgit v1.2.1