Merge branch 'no-init' into 'antifascista'
Deprecar haini.sh init See merge request sutty/haini.sh!29
This commit is contained in:
commit
c690dd948b
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