From a863393b678577000d89184ee80b3ab388474638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Gonz=C3=A1lez?= Date: Wed, 13 May 2026 11:45:57 +0200 Subject: [PATCH] quito -it --- flutterw | 11 ++++++++++- release.sh | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/flutterw b/flutterw index c68a59b..c450b3d 100755 --- a/flutterw +++ b/flutterw @@ -111,8 +111,17 @@ docker_options(){ fi } +tty_options(){ + if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then + echo "-it" + else + echo "" + fi +} + exec_in_container(){ local SPIOPTIONS=$(spi_options) + local TTYOPTIONS=$(tty_options) local GRAPHICOPTIONS=$(graphic_options) local DOCKEROPTIONS=$(docker_options) mkdir -p $BUILDCACHE/root-home/.config @@ -120,7 +129,7 @@ exec_in_container(){ mkdir -p $BUILDCACHE/sdks-flutter-bin-cache $DOCKER run \ - -it \ + $TTYOPTIONS \ --init \ --rm \ -v $BUILDCACHE/root-home/.config:/root/.config \ diff --git a/release.sh b/release.sh index fe5b991..8d5edba 100755 --- a/release.sh +++ b/release.sh @@ -2,7 +2,7 @@ echo "Ejecutando $0 en directorio $(pwd)" build_release_files(){ - docker ps + docker ps ./flutterw --exec ls -la make build-container build-builders test build-android-release-container build-linux-release-container build-web-release-container