build: Darwin fix
This commit is contained in:
@@ -2,6 +2,24 @@
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
# Check if the marmot-ts submodule is initialised
|
||||
if [[ ! -f "$ROOT_DIR/marmot-ts/package.json" ]]; then
|
||||
echo "marmot-ts submodule is not initialised." >&2
|
||||
if [[ -t 0 ]]; then
|
||||
read -rp "Initialise it now? [y/N] " answer
|
||||
if [[ "$answer" =~ ^[Yy]$ ]]; then
|
||||
git -C "$ROOT_DIR" submodule update --init marmot-ts
|
||||
else
|
||||
echo "Skipping marmot e2e tests."
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
echo "Run 'git submodule update --init marmot-ts' to initialise it." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
cd "$ROOT_DIR/marmot-ts"
|
||||
|
||||
if [[ ! -d node_modules ]]; then
|
||||
|
||||
Reference in New Issue
Block a user