Skip to content

Commit

Permalink
Add more
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed Jan 17, 2024
1 parent 056caed commit 7534a9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
15 changes: 6 additions & 9 deletions scripts/components/ganttChartDashboards/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

set -ex

# Reset home
CURR_DIR=`dirname $(realpath $0)`
echo $CURR_DIR && cd $CURR_DIR

# vars / libs
. ../../../lib/shell/file_management.sh
PLUGIN_PATH=$PWD
SCRIPT_DIR=`dirname $(realpath $0)`
. $SCRIPT_DIR/../../../lib/shell/file_management.sh
# 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"

function usage() {
echo "Usage: $0 [args]"
Expand Down Expand Up @@ -87,9 +87,6 @@ if [ "$PLATFORM" = "windows" ]; then
fi

mkdir -p $OUTPUT/plugins
# For hybrid plugin it actually resides in 'ganttChartDashboards/gantt-chart'
PLUGIN_FOLDER=$(basename "$PWD")
PLUGIN_NAME=$(basename $(dirname "$PWD"))
# TODO: [CLEANUP] Needed OpenSearch Dashboards git repo to build the required modules for plugins
# This makes it so there is a dependency on having Dashboards pulled already.
cp -r ../$PLUGIN_FOLDER/ ../../OpenSearch-Dashboards/plugins
Expand Down
5 changes: 2 additions & 3 deletions scripts/default/opensearch-dashboards/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ set -ex

# vars / libs
SCRIPT_DIR=`dirname $(realpath $0)`

. $SCRIPT_DIR/../../../lib/shell/file_management.sh
PLUGIN_PATH=$PWD
PLUGIN_NAME=$(basename "$PWD")
PLUGIN_PATH="../OpenSearch-Dashboards/plugins/$PLUGIN_NAME"

function usage() {
echo "Usage: $0 [args]"
Expand Down Expand Up @@ -93,7 +93,6 @@ else
fi

mkdir -p $OUTPUT/plugins
PLUGIN_NAME=$(basename "$PWD")
# TODO: [CLEANUP] Needed OpenSearch Dashboards git repo to build the required modules for plugins
# This makes it so there is a dependency on having Dashboards pulled already.
cp -r ../$PLUGIN_NAME/ ../OpenSearch-Dashboards/plugins
Expand Down

0 comments on commit 7534a9e

Please sign in to comment.