From 2bee4b24f2f6c104bbc7636d18f6718bff650e8d Mon Sep 17 00:00:00 2001 From: void Date: Tue, 1 Jun 2021 15:42:32 +0000 Subject: [PATCH] pasar stdin al comando que se ejecuta Squashed commit of the following: commit 415163092768b8ba3690a8d9d68615f9d764da64 Author: void Date: Sun May 16 16:44:01 2021 +0000 pasar stdin al comando que se ejecuta fixes #5 --- haini.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/haini.sh b/haini.sh index edf4b3d..c1da5dd 100755 --- a/haini.sh +++ b/haini.sh @@ -53,6 +53,7 @@ correr() { --dev-bind /tmp /tmp \ --chdir "/Sutty/${PWD##*/}" \ /bin/sh -l -c "$1" + /bin/sh -l -c "$1" < "${stdin:-/dev/null}" } crear_entorno() { @@ -96,4 +97,4 @@ crear_entorno() { } crear_entorno -correr "${1:-sh}" +stdin=/dev/stdin correr "${1:-sh}"