Merge branch 'no-init' into 'antifascista'

Deprecar haini.sh init

See merge request sutty/haini.sh!29
This commit is contained in:
Nulo 2021-09-02 16:50:03 +00:00
commit c690dd948b

View file

@ -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