From e3a3c78464a866fb9aa36155686dbd5acf57edc1 Mon Sep 17 00:00:00 2001 From: drduh Date: Fri, 3 Jul 2015 12:37:16 -0400 Subject: [PATCH] Reset all cursor attributes after coloring --- pwd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwd.sh b/pwd.sh index 1d3814a..c0cc86c 100755 --- a/pwd.sh +++ b/pwd.sh @@ -13,7 +13,7 @@ safe=${PWDSH_SAFE:=pwd.sh.safe} fail () { # Print an error message and exit. - tput setaf 1 ; echo "Error: ${1}" + tput setaf 1 ; echo "Error: ${1}" ; tput sgr0 exit 1 } @@ -163,5 +163,5 @@ else read_pass fi -tput setaf 2 ; echo "Done" +tput setaf 2 ; echo "Done" ; tput sgr0