From bfddccb155a73a88a3e961e0207521c3cb26e8b5 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 15 Jul 2024 20:09:38 -0400 Subject: [PATCH] Remove dependency on opensearch build repo libs from custom build.sh (#2033) (#2034) --- 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/