Remove IFS

This commit is contained in:
weslambert
2024-09-13 09:16:53 -04:00
committed by GitHub
parent 2e85dcc36a
commit 662f906f9d

View File

@@ -12,7 +12,6 @@ SESSIONCOOKIE=$(curl -s -K /opt/so/conf/elasticsearch/curl.config -c - -X GET ht
# List agent policies # List agent policies
IFS=$'\n' IFS=$'\n'
for AGENT_POLICY in $(elastic_fleet_agent_policy_names); do for AGENT_POLICY in $(elastic_fleet_agent_policy_names); do
IFS=$'\n'
for INTEGRATION in $(elastic_fleet_integration_policy_names "$AGENT_POLICY"); do for INTEGRATION in $(elastic_fleet_integration_policy_names "$AGENT_POLICY"); do
if ! [[ "$INTEGRATION" == "elastic-defend-endpoints" ]] && ! [[ "$INTEGRATION" == "fleet_server-"* ]]; then if ! [[ "$INTEGRATION" == "elastic-defend-endpoints" ]] && ! [[ "$INTEGRATION" == "fleet_server-"* ]]; then
# Get package name so we know what package to look for when checking the current and latest available version # Get package name so we know what package to look for when checking the current and latest available version