diff --git a/haini.sh b/haini.sh index 9ff2c0e..38ec411 100755 --- a/haini.sh +++ b/haini.sh @@ -235,11 +235,15 @@ if test "$HAIN_ENV"; then ${*:-$DEFAULT} else if test -z "${SSH_AUTH_SOCK}"; then - SSH_ADHOC=true + if ! type ssh-agent >/dev/null 2>&1 ; then + echo "Instala ssh-agent para poder trabajar con git remoto dentro de haini.sh" >&2 + else + SSH_ADHOC=true - echo "Iniciando un ssh-agent temporal, te recomendamos instalarlo en tu terminal." >&2 - eval "$(ssh-agent)" - ssh-add + echo "Iniciando un ssh-agent temporal, te recomendamos instalarlo en tu terminal." >&2 + eval "$(ssh-agent)" + ssh-add + fi fi crear_entorno