Skip to content

Commit 3048b7e

Browse files
authored
Merge pull request #6729 from akatsoulas/platform-agnostic-init
OS agnostic init
2 parents 888d0ec + 89e39dd commit 3048b7e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ else
55
DC = $(shell which docker) compose
66
endif
77

8+
UNAME_S := $(shell uname -s)
9+
INIT_ARGS := ""
10+
ifeq ($(UNAME_S),Darwin)
11+
INIT_ARGS := "--optipng-fix"
12+
endif
13+
814
default: help
915
@echo ""
1016
@echo "You need to specify a subcommand."
@@ -45,10 +51,7 @@ start: .docker-build
4551
run: start
4652

4753
init: .docker-build
48-
${DC} run web bin/run-bootstrap.sh
49-
50-
init-mac: .docker-build
51-
${DC} run web bin/run-bootstrap.sh --optipng-fix
54+
${DC} run web bin/run-bootstrap.sh $(INIT_ARGS)
5255

5356
shell: .docker-build
5457
${DC} run web bash

0 commit comments

Comments
 (0)