Added colour to warning. Removed 'tput set AF' colour codes.
This commit is contained in:
parent
dae5b0fdaa
commit
6b794373f2
2 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue