Merge branch 'recursividad' into 'antifascista'

Poder correr haini.sh recursivamente

See merge request sutty/haini.sh!27
This commit is contained in:
Nulo 2021-08-26 21:20:27 +00:00
commit 3c0f04cf3b

View file

@ -15,7 +15,7 @@ if test "$ROOT" != "$(dirname "$PWD")" && test "$ROOT" != "$PWD"; then
fi fi
# Necesitamos bubblewrap # Necesitamos bubblewrap
if ! type bwrap >/dev/null 2>&1 ; then if ! test "$HAIN_ENV" && ! type bwrap >/dev/null 2>&1 ; then
echo "Por favor, instala el paquete bubblewrap" echo "Por favor, instala el paquete bubblewrap"
exit 1 exit 1
fi fi
@ -190,11 +190,15 @@ case $1 in
init) echo "export PATH=$DIR:\$PATH" ; exit ;; init) echo "export PATH=$DIR:\$PATH" ; exit ;;
serve) shift; DEFAULT=nginx ;; serve) shift; DEFAULT=nginx ;;
*) *)
if ! type "$SELF" >/dev/null 2>&1 ; then 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: Inicia haini.sh con 'eval \$($0 init)' para poder ejecutar con solo 'haini.sh'" >&2
fi fi
;; ;;
esac esac
if test $HAIN_ENV; then
${*:-$DEFAULT}
else
crear_entorno crear_entorno
stdin=/dev/stdin correr "${*:-$DEFAULT}" stdin=/dev/stdin correr "${*:-$DEFAULT}"
fi