Avisar cuando no hay ssh-agent
This commit is contained in:
parent
1af786a9e1
commit
19aac59bdc
1 changed files with 8 additions and 4 deletions
4
haini.sh
4
haini.sh
|
@ -235,12 +235,16 @@ if test "$HAIN_ENV"; then
|
||||||
${*:-$DEFAULT}
|
${*:-$DEFAULT}
|
||||||
else
|
else
|
||||||
if test -z "${SSH_AUTH_SOCK}"; then
|
if test -z "${SSH_AUTH_SOCK}"; then
|
||||||
|
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
|
SSH_ADHOC=true
|
||||||
|
|
||||||
echo "Iniciando un ssh-agent temporal, te recomendamos instalarlo en tu terminal." >&2
|
echo "Iniciando un ssh-agent temporal, te recomendamos instalarlo en tu terminal." >&2
|
||||||
eval "$(ssh-agent)"
|
eval "$(ssh-agent)"
|
||||||
ssh-add
|
ssh-add
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
crear_entorno
|
crear_entorno
|
||||||
stdin=/dev/stdin correr "${*:-$DEFAULT}"
|
stdin=/dev/stdin correr "${*:-$DEFAULT}"
|
||||||
|
|
Loading…
Reference in a new issue