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.
This commit is contained in:
Chron
2022-10-12 11:29:13 -05:00
committed by GitHub
parent a1098a59d9
commit c913df502e
+2 -2
View File
@@ -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
get-addefaultdomainpasswordpolicy