1
0
mirror of https://github.com/octoleo/Purse.git synced 2024-06-01 06:00:47 +00:00

OpenBSD compatible tput setaf

This commit is contained in:
drduh 2016-05-18 15:04:16 -04:00
parent e10a9721f1
commit 0efd10110b

4
pwd.sh
View File

@ -14,7 +14,7 @@ safe="${PWDSH_SAFE:=pwd.sh.safe}"
fail () { fail () {
# Print an error message and exit. # Print an error message and exit.
tput setaf 1 ; echo "Error: ${1}" ; tput sgr0 tput setaf 1 1 1 ; echo "Error: ${1}" ; tput sgr0
exit 1 exit 1
} }
@ -209,6 +209,6 @@ else
read_pass "$@" read_pass "$@"
fi fi
tput setaf 2 ; echo " tput setaf 2 2 2 ; echo "
Done" ; tput sgr0 Done" ; tput sgr0