diff --git a/templates/update-opensearch-plugins.j2 b/templates/update-opensearch-plugins.j2 index 57df247..b39f16d 100644 --- a/templates/update-opensearch-plugins.j2 +++ b/templates/update-opensearch-plugins.j2 @@ -10,7 +10,7 @@ ACTION="${1:-help}" case "$ACTION" in purge) - PLUGINS=$($OPENSEARCH_BIN_PATH/opensearch-plugin list | grep -v opensearch-) + PLUGINS=$($OPENSEARCH_BIN_PATH/opensearch-plugin list | grep -v opensearch- || true) if [[ -z "$PLUGINS" ]]; then exit 0 else