Added colour to warning. Removed 'tput set AF' colour codes.

This commit is contained in:
Darren 'Tadgy' Austin 2019-07-02 22:13:18 +01:00
commit 6b794373f2
2 changed files with 8 additions and 8 deletions

View file

@ -21,7 +21,7 @@ hash ssh-add ssh-agent >/dev/null 2>&1 && {
[[ ! -z "$SSH_AUTH_SOCK" ]] && (( ${_SSH_AGENT_REG_FAILED:-0} == 0 )) && {
_lock_agents_file && {
_pop_agent_sock || {
echo -e "$(tput setaf 1 || tput AF 1)Failed to clean up agents file!$(tput op)"
echo -e "$(tput setaf 1)Failed to clean up agents file!$(tput op)"
_SLEEP=3
}
}
@ -32,7 +32,7 @@ hash ssh-add ssh-agent >/dev/null 2>&1 && {
(( $SHLVL == 1 )) && {
[[ ! -z "$SSH_AGENT_PID" ]] && {
ssh-agent -k >/dev/null 2>&1 || {
echo -e "$(tput setaf 1 || tput AF 1)Failed to kill ssh-agent!$(tput op)"
echo -e "$(tput setaf 1)Failed to kill ssh-agent!$(tput op)"
_SLEEP=3
}
}