From b0d36ffbef00bccf51c2efaf697ede92657d8534 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Mon, 15 Jul 2024 18:12:08 -0400 Subject: [PATCH] Remove dependency on opensearch build repo libs from custom build.sh (#2033) Signed-off-by: Peter Zhu --- scripts/build.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 06dab67b..55c8ef65 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -10,8 +10,6 @@ set -ex # vars / libs -SCRIPT_DIR=`dirname $(realpath $0)` -. $SCRIPT_DIR/../../../lib/shell/file_management.sh PLUGIN_NAME=$(basename "$PWD") PLUGIN_PATH=`realpath ../OpenSearch-Dashboards/plugins/$PLUGIN_NAME` @@ -30,7 +28,7 @@ function usage() { function cleanup_all() { - File_Delete $PLUGIN_PATH + rm -rf -- $PLUGIN_PATH } trap cleanup_all TERM INT EXIT @@ -104,4 +102,4 @@ echo "BUILD RELEASE ZIP FOR $PLUGIN_NAME" cd plugins/$PLUGIN_NAME; yarn $HELPER_STRING build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER cd $CURR_DIR echo "COPY $PLUGIN_NAME.zip" -cp -r ../OpenSearch-Dashboards/plugins/$PLUGIN_NAME/build/$PLUGIN_NAME-$VERSION$QUALIFIER_IDENTIFIER.zip $OUTPUT/plugins/ \ No newline at end of file +cp -r ../OpenSearch-Dashboards/plugins/$PLUGIN_NAME/build/$PLUGIN_NAME-$VERSION$QUALIFIER_IDENTIFIER.zip $OUTPUT/plugins/