aboutsummaryrefslogtreecommitdiff
path: root/source/blog/2015-12-08-safeguarding-git-repos-against-accidental-rm.md
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-12-08 04:39:24 -0800
committerZhiming Wang <zmwangx@gmail.com>2015-12-08 04:41:18 -0800
commit792806fd1f80fb7d777db7325979d62b8c9f90bc (patch)
tree58a7871f9169189d601771c820ec956c219015d9 /source/blog/2015-12-08-safeguarding-git-repos-against-accidental-rm.md
parentfba9cf714413ace2bbd92387a7e8517409a86fed (diff)
downloadmy_new_personal_website-792806fd1f80fb7d777db7325979d62b8c9f90bc.tar.xz
my_new_personal_website-792806fd1f80fb7d777db7325979d62b8c9f90bc.zip
Latest post: fix missing color code and newline in message
Diffstat (limited to '')
-rw-r--r--source/blog/2015-12-08-safeguarding-git-repos-against-accidental-rm.md2
1 files changed, 1 insertions, 1 deletions
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