1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-03-04 02:40:38 +00:00

drop unnecessary wallet checks

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-12-19 17:15:49 +01:00
parent 211967837e
commit 7d040d38aa
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -42,16 +42,11 @@ node_modules: ##@install Install the Node.js dependencies using Yarn
yarn install
check-prod-vars: ##@checks Check if the necesary env variables are set
ifeq ($(NODE_ENV),production)
[[ -z "${WALLET_MNEMONIC}" ]] && { echo "Not defined: WALLET_MNEMONIC"; exit 1 }
[[ -z "${WALLET_PASSWORD}" ]] && { echo "Not defined: WALLET_PASSWORD"; exit 1 }
else
ifneq ($(NODE_ENV),$(filter $(NODE_ENV),development localhost))
ifneq ($(NODE_ENV),$(filter $(NODE_ENV),production development localhost))
@echo "Unknown NODE_ENV value: ${NODE_ENV}"
@echo "Use 'production' or 'development' or 'localhost'."
exit 1
endif
endif
compile-contracts: ##@compile Compile the contracts using Embark.js
compile-contracts: check-prod-vars