- 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
parent
acb98c34ca
commit
36d3c66ccd
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue