From a7628e204a7d1b88e21d85bb8e641f9846a7c9e1 Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Mon, 20 Dec 2021 13:12:18 -0600 Subject: [PATCH] add env.sh shim to project root (#34) `env.sh` is copied verbatim from: https://github.com/status-im/nimbus-build-system#envsh --- env.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 env.sh diff --git a/env.sh b/env.sh new file mode 100755 index 00000000..697a426c --- /dev/null +++ b/env.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# We use ${BASH_SOURCE[0]} instead of $0 to allow sourcing this file +# and we fall back to a Zsh-specific special var to also support Zsh. +REL_PATH="$(dirname ${BASH_SOURCE[0]:-${(%):-%x}})" +ABS_PATH="$(cd ${REL_PATH}; pwd)" +source ${ABS_PATH}/vendor/nimbus-build-system/scripts/env.sh