- the latest OS X (10.12.6) has bash 3.2.57, yes :)

- '-v' used before is not available until bash 4.x

Signed-off-by: Maxim Kovgan <max@opsguru.io>
pull/1029/head
Maxim Kovgan 2017-08-26 22:49:59 +03:00
parent acb98c34ca
commit 36d3c66ccd
1 changed files with 2 additions and 2 deletions

View File

@ -126,8 +126,8 @@ function sshagent() {
param '1: on|off ' param '1: on|off '
example '$ sshagent on' example '$ sshagent on'
group 'ssh' group 'ssh'
[[ -v SSH_AGENT_ENV ]] \ [[ -z "${SSH_AGENT_ENV}" ]] \
|| export SSH_AGENT_ENV="${HOME}/.ssh/agent_env.${HOSTNAME}" && export SSH_AGENT_ENV="${HOME}/.ssh/agent_env.${HOSTNAME}"
case "${1}" in case "${1}" in
on) _ensure_valid_sshagent_env; on) _ensure_valid_sshagent_env;