Skip to content

Commit

Permalink
added tty check for adore_cli_run
Browse files Browse the repository at this point in the history
  • Loading branch information
akoerner1 committed Dec 5, 2024
1 parent 738e1ef commit 382dc16
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion adore_cli.mk
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ adore_cli_run:
make adore_cli_start; \
fi
@echo "Executing command in container ${ADORE_CLI_CONTAINER_NAME}: $(cmd)"
docker exec --workdir /tmp/adore -it ${ADORE_CLI_CONTAINER_NAME} zsh -c "source ~/.zshrc && $(cmd)"
@if test -t 1; then \
docker exec --workdir /tmp/adore -it ${ADORE_CLI_CONTAINER_NAME} zsh -c "source ~/.zshrc && $(cmd)"; \
else \
docker exec --workdir /tmp/adore ${ADORE_CLI_CONTAINER_NAME} zsh -c "source ~/.zshrc && $(cmd)"; \
fi



.PHONY: adore_cli_start_headless
Expand Down

0 comments on commit 382dc16

Please sign in to comment.