Skip to content

Commit

Permalink
Merge pull request #11322 from Mab879/fix_ol8_shellcheck
Browse files Browse the repository at this point in the history
Fix ShellCheck Issues in CPE Checks
  • Loading branch information
jan-cerny authored Dec 1, 2023
2 parents 6ce0725 + 58294d8 commit e6338da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared/applicability/runtime_kernel_fips_enabled.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cpe:/a:runtime-kernel-fips-enabled
title: Running kernel has fips mode enabled
check_id: runtime_kernel_fips_enabled
bash_conditional: '[ $(sysctl -a | grep -c fips_enabled.*1) -eq 1 ]'
bash_conditional: "[ \"$(sysctl -a | grep -c 'fips_enabled.*1')\" -eq 1 ]"
2 changes: 1 addition & 1 deletion shared/applicability/secure_boot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cpe:/a:secure-boot
title: System secure boot is enabled
check_id: secure_boot_enabled
bash_conditional: "[ $(mokutil --sb-state | awk '{print $NF}') == 'enabled' ]"
bash_conditional: "[ \"$(mokutil --sb-state | awk '{print $NF}')\" == 'enabled' ]"

0 comments on commit e6338da

Please sign in to comment.