Skip to content

Commit

Permalink
chore(mobile-build): check for lsof
Browse files Browse the repository at this point in the history
  • Loading branch information
n0izn0iz committed Nov 28, 2019
1 parent b9d5ffa commit a99724c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/packages/berty-app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ entry-file ?= index.js
build-dir ?= $(PWD)/build
dest ?= $(build-dir)/$(platform)-$(target)/$(config)

check-program = $(foreach exec,$(1),$(if $(shell PATH="$(PATH)" which $(exec)),,$(error "No $(exec) in PATH")))

.DEFAULT_GOAL := run

export ENVFILE ?= $(shell \
Expand Down Expand Up @@ -60,7 +62,7 @@ deps.darwin: deps
start: port ?= 8081
start: host ?= 127.0.0.1
start: deps
kill $$(lsof -t -i :$(port)) || true
$(call check-program, lsof)
cd $(PWD) && $(react-native) start \
--port=$(port) \
--host=$(host) \
Expand Down

0 comments on commit a99724c

Please sign in to comment.