Skip to content

Commit 5531204

Browse files
Check devenv before sourcing in test script
1 parent 1e2d54d commit 5531204

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env bash
22

3-
. "./scripts/devenv.sh" || { echo >&2 "Failed to source devenv.sh. Aborting."; exit 1; }
3+
# Check if already in devenv, if not source it
4+
if [ -z "${LIGHT_PROTOCOL_DEVENV:-}" ]; then
5+
. "./scripts/devenv.sh" || { echo >&2 "Failed to source devenv.sh. Aborting."; exit 1; }
6+
fi
47

58
set -eux
69

0 commit comments

Comments
 (0)