Skip to content

Commit 9d9cc99

Browse files
authored
Merge pull request #289 from ody/fix_no_fips_command
Ensure fips commands exists before using it
2 parents 57f5a9b + c71afca commit 9d9cc99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/precheck.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if grep -qi ubuntu /etc/os-release; then
77
osfamily="ubuntu"
88
elif grep -qi sles /etc/os-release; then
99
osfamily="sles"
10-
elif grep -qi redhat /etc/os-release && fips-mode-setup --is-enabled; then
10+
elif grep -qi redhat /etc/os-release && (which fips-mode-setup &>/dev/null && fips-mode-setup --is-enabled); then
1111
osfamily="redhatfips"
1212
else
1313
osfamily="el"

0 commit comments

Comments
 (0)