Skip to content

Commit

Permalink
Detect TTY before assigning stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
david-scarratt-lrn authored and sreenivasa-murty-lrn committed Oct 10, 2024
1 parent 91de53a commit 55a3042
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ TARGETS = all build devbuild prodbuild \
.default: all

ifneq (,$(DOCKER))
TTYFLAGS := $(shell if [ -t 0 ] ; then echo "-it"; else echo "-t"; fi)
# Re-run the make command in a container
DKR = docker container run -it --rm \
DKR = docker container run $(TTYFLAGS) --rm \
-v $(CURDIR):/srv/sdk/php:z,delegated \
-v lrn-sdk-php_cache:/root/.composer \
-w /srv/sdk/php \
Expand Down

0 comments on commit 55a3042

Please sign in to comment.