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]"