Deprecar haini.sh init
init tan solo cambia el PATH que se puede hacer sin. A cambio, nos ahorramos errores confusos de dependencias que deberían aparecer solo cuando estamos ejecutando haini.sh en si.
This commit is contained in:
parent
d3a0fc2aef
commit
30ae5ea882
1 changed files with 6 additions and 2 deletions
8
haini.sh
8
haini.sh
|
@ -187,11 +187,15 @@ crear_entorno() {
|
|||
DEFAULT="sh"
|
||||
|
||||
case $1 in
|
||||
init) echo "export PATH=$DIR:\$PATH" ; exit ;;
|
||||
init)
|
||||
echo "Advertencia: haini.sh init está deprecado, usá \`export PATH=$DIR:\$PATH\`." >&2
|
||||
echo "export PATH=$DIR:\$PATH"
|
||||
exit
|
||||
;;
|
||||
serve) shift; DEFAULT=nginx ;;
|
||||
*)
|
||||
if ! test "$HAIN_ENV" && ! type "$SELF" >/dev/null 2>&1 ; then
|
||||
echo "Tip: Inicia haini.sh con 'eval \$($0 init)' para poder ejecutar con solo 'haini.sh'" >&2
|
||||
echo "Tip: Usá \`export PATH=$DIR:\$PATH\` para poder correr comandos de haini.sh con solo 'haini.sh'" >&2
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue