From 3d8d06fe7fa473eed58b4baaa4149e3797c8ec31 Mon Sep 17 00:00:00 2001 From: Eddy Zhou Date: Sat, 25 Nov 2023 13:05:25 +0000 Subject: [PATCH] modules dir not found in ci --- scripts/watod-setup-env.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/watod-setup-env.sh b/scripts/watod-setup-env.sh index 79bd30e1..ae33bd09 100755 --- a/scripts/watod-setup-env.sh +++ b/scripts/watod-setup-env.sh @@ -15,6 +15,11 @@ MONO_DIR="$(dirname "$(realpath "$0")")" 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" +fi # Allow for local overrides of any of the below parameters if [ -f "$MONO_DIR/watod-config.sh" ]; then