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