v1.5.1 = Moved an echo

Moved an echo statement so that it is always executed.
This commit is contained in:
Zack T
2022-03-21 22:42:44 -07:00
parent 3a82eb1660
commit 2982453492

View File

@@ -3,7 +3,7 @@
###################################################################################################
# Script Name: Set-CrowdStrikeSensorTags.sh
# By: Zack Thompson / Created: 3/2/2021
# Version: 1.5.0 / Updated: 3/22/2021 / By: ZT
# Version: 1.5.1 / Updated: 3/21/2022 / By: ZT
#
# Description: This script sets the CrowdStrike Sensor Group Tags.
#
@@ -255,6 +255,8 @@ if [[ "${current_tags[*]}" == *"mojave_hold"* || ( "${os_major_version}" == 10 &
fi
echo -e "Current Sensor Tags: ${current_tags} \nNew Sensor Tags: ${sensor_tags}"
# Apply tags if different
if [[ "${current_tags}" == "${sensor_tags}" ]]; then
@@ -262,8 +264,6 @@ if [[ "${current_tags}" == "${sensor_tags}" ]]; then
else
echo -e "Current Sensor Tags: ${current_tags} \nNew Sensor Tags: ${sensor_tags}"
echo "Applying sensor tags..."
exit_status=$( "${falconctl}" grouping-tags set "${sensor_tags}" 2>&1 )
exit_code=$?