Skip to content

Commit

Permalink
Merge pull request #14 from a4lg/robust-docker-detection
Browse files Browse the repository at this point in the history
Detect Docker robustly
  • Loading branch information
rpsene authored Sep 12, 2023
2 parents deebd2c + 26fbafb commit 3414af9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ all: build

build:
@echo "Checking if Docker is available..."
@if command -v docker &> /dev/null ; then \
@if command -v docker >/dev/null 2>&1 ; then \
echo "Docker is available, building inside Docker container..."; \
$(MAKE) build-container; \
else \
Expand All @@ -62,4 +62,4 @@ build-no-container:
clean:
@echo "Cleaning up generated files..."
rm -f $(PDF_RESULT)
@echo "Cleanup completed."
@echo "Cleanup completed."

0 comments on commit 3414af9

Please sign in to comment.