pasar stdin al comando que se ejecuta
Squashed commit of the following: commit 415163092768b8ba3690a8d9d68615f9d764da64 Author: void <v@sutty.nl> Date: Sun May 16 16:44:01 2021 +0000 pasar stdin al comando que se ejecuta fixes #5
This commit is contained in:
parent
1c70a27fa0
commit
2bee4b24f2
1 changed files with 2 additions and 1 deletions
3
haini.sh
3
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}"
|
||||
|
|
Loading…
Reference in a new issue