Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Changed order of src/opt directory priority. Set options if it exists.

ZachTRice574bb688118c
diff --git a/bin/wv-options-build b/bin/wv-options-build
index 873d627f5..fd1cde058 100755
--- a/bin/wv-options-build
+++ b/bin/wv-options-build
@@ -14,14 +14,15 @@ PROG=$(basename "$0")
BASE=$(dirname "$0")/..
BIN_DIR="$BASE/bin"
-SRC_DIR="$BASE/options"
+SRC_DIR="$BASE/node_modules/worldview-options-eosdis"
BUILD_DIR="$BASE/build/options-build"
DEST_DIR="$BASE/build/options"
-OPT_DIR="$BASE/options"
+OPT_DIR="$BASE/node_modules/worldview-options-eosdis"
-if [ -d "$BASE/node_modules/worldview-options-eosdis" ]; then
- SRC_DIR="$BASE/node_modules/worldview-options-eosdis"
- OPT_DIR="$BASE/node_modules/worldview-options-eosdis"
+# If there is an options directory, use instead of node_modules
+if [ -d "$BASE/options" ]; then
+ SRC_DIR="$BASE/options"
+ OPT_DIR="$BASE/options"
fi
[ "$FORCE" ] || set -e