From 2982453492e194d8080aed8a76a0d02fc899d0e1 Mon Sep 17 00:00:00 2001 From: Zack T Date: Mon, 21 Mar 2022 22:42:44 -0700 Subject: [PATCH] v1.5.1 = Moved an echo Moved an echo statement so that it is always executed. --- Software/CrowdStrike/Set-CrowdStrikeSensorTags.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Software/CrowdStrike/Set-CrowdStrikeSensorTags.sh b/Software/CrowdStrike/Set-CrowdStrikeSensorTags.sh index 91418e3..b4be9c7 100644 --- a/Software/CrowdStrike/Set-CrowdStrikeSensorTags.sh +++ b/Software/CrowdStrike/Set-CrowdStrikeSensorTags.sh @@ -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=$?