Skip to content

Commit

Permalink
Avoid bash-isms in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomini committed Apr 26, 2024
1 parent c1f2187 commit eff77c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vomslib.robot
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Stop using certificate

Get certificate subject [Arguments] ${certFile}
File Should Exist ${certFile}
${subject} Execute and Check Success openssl x509 -in ${certFile} -noout -subject $(grep -q "^OpenSSL 3\." <(openssl version) && echo -nameopt compat) | sed -E "s#subject= ?##"
${subject} Execute and Check Success openssl x509 -in ${certFile} -noout -subject $(openssl version | grep -q "^OpenSSL 3\." && echo -nameopt compat) | sed -E "s#subject= ?##"
RETURN ${subject}

Get named certificate subject [Arguments] ${cert}
Expand Down

0 comments on commit eff77c5

Please sign in to comment.