From 466e81de63ccf15bbeef5a488550b63b62701c6f Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 18 Jan 2024 13:01:21 -0500 Subject: [PATCH] Tweak the path that get removed by osd plugin cleanups Signed-off-by: Peter Zhu --- scripts/components/ganttChartDashboards/build.sh | 2 +- scripts/default/opensearch-dashboards/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/components/ganttChartDashboards/build.sh b/scripts/components/ganttChartDashboards/build.sh index f268f56f25..435ae4dc3f 100755 --- a/scripts/components/ganttChartDashboards/build.sh +++ b/scripts/components/ganttChartDashboards/build.sh @@ -15,7 +15,7 @@ SCRIPT_DIR=`dirname $(realpath $0)` # For hybrid plugin it actually resides in 'dashboards-visualizations/gantt-chart' PLUGIN_FOLDER=$(basename "$PWD") PLUGIN_NAME=$(basename $(dirname "$PWD")) -PLUGIN_PATH="../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER" +PLUGIN_PATH=`realpath ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER` function usage() { echo "Usage: $0 [args]" diff --git a/scripts/default/opensearch-dashboards/build.sh b/scripts/default/opensearch-dashboards/build.sh index 7a3be505c1..0219aa707a 100755 --- a/scripts/default/opensearch-dashboards/build.sh +++ b/scripts/default/opensearch-dashboards/build.sh @@ -13,7 +13,7 @@ set -ex SCRIPT_DIR=`dirname $(realpath $0)` . $SCRIPT_DIR/../../../lib/shell/file_management.sh PLUGIN_NAME=$(basename "$PWD") -PLUGIN_PATH="../OpenSearch-Dashboards/plugins/$PLUGIN_NAME" +PLUGIN_PATH=`realpath ../OpenSearch-Dashboards/plugins/$PLUGIN_NAME` function usage() { echo "Usage: $0 [args]"