Skip to content

Commit

Permalink
we skip exporting environment in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwardius committed Nov 25, 2023
1 parent 4c44dcd commit 39cf3ee
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions scripts/watod-setup-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ MONO_DIR=${MONO_DIR%/*}

MODULES_DIR="$MONO_DIR/modules"

# default to the monorepo directory, this is for CI
if [ ! -d "$MODULES_DIR" ]; then
echo "Directory does not exist: $MODULES_DIR"
MODULES_DIR="$MONO_DIR"
echo "Switching to: $MODULES_DIR"
fi

# Allow for local overrides of any of the below parameters
if [ -f "$MONO_DIR/watod-config.sh" ]; then
source "$MONO_DIR/watod-config.sh"
Expand Down Expand Up @@ -97,6 +90,11 @@ FOXGLOVE_BRIDGE_PORT=${FOXGLOVE_BRIDGE_PORT:-$((BASE_PORT++))}

## -------------------- Export Environment Variables -------------------------

# skip this step if the module directory doesn't exist, this is for CI
if [ ! -d "$MODULES_DIR" ]; then
exit 0
fi

# General
echo "# Auto-generated by ${BASH_SOURCE[0]}. Edit at own risk." > "$MODULES_DIR/.env"

Expand Down

0 comments on commit 39cf3ee

Please sign in to comment.