From c080e31431aeb767befb1b03795b62660b88a33e Mon Sep 17 00:00:00 2001 From: Tuzi Date: Fri, 26 Aug 2022 12:59:37 -0500 Subject: [PATCH] T1201_Improved --- atomics/T1201/T1201.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atomics/T1201/T1201.yaml b/atomics/T1201/T1201.yaml index 43716efe..194843c0 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 [ $(rpm -q --queryformat '%{VERSION}') -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 /b 0; else exit /b 1; fi; get_prereq_command: | echo Please run from CentOS or RHEL v7 executor: