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 committed May 14, 2024
1 parent 4ae8c77 commit 743310d
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 743310d

Please sign in to comment.