From c913df502e27d13b65fca1f2b6e136390aaa2546 Mon Sep 17 00:00:00 2001 From: Chron <78235351+chronolator@users.noreply.github.com> Date: Wed, 12 Oct 2022 11:29:13 -0500 Subject: [PATCH] Fixed the exit status of the prereq_command. The prereq_command was exiting using powershell syntax, not bash. The /b was removed to fix the issue. --- atomics/T1201/T1201.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atomics/T1201/T1201.yaml b/atomics/T1201/T1201.yaml index 194843c0..71100625 100644 --- a/atomics/T1201/T1201.yaml +++ b/atomics/T1201/T1201.yaml @@ -21,7 +21,7 @@ atomic_tests: - description: | System must be CentOS or RHEL v7 prereq_command: | - if [ $(uname -a | grep -ioP 'el[0-9]' | grep -oP '[0-9]') -eq "7" ]; then exit /b 0; else exit /b 1; fi; + if [ $(uname -a | grep -ioP 'el[0-9]' | grep -oP '[0-9]') -eq "7" ]; then exit 0; else exit 1; fi; get_prereq_command: | echo Please run from CentOS or RHEL v7 executor: @@ -108,4 +108,4 @@ atomic_tests: name: powershell elevation_required: false command: | - get-addefaultdomainpasswordpolicy \ No newline at end of file + get-addefaultdomainpasswordpolicy