Skip to content

Commit

Permalink
Making the python tolerant of multiple submissions of the same alg
Browse files Browse the repository at this point in the history
  • Loading branch information
ounsworth committed Jul 22, 2024
1 parent e9c97ea commit 4ceb12c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test_certs_r3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ test_ta () {
tafileBasename=$(basename $tafile)

# strip off the file suffix to get the OID name
if [[ $(expr match "$tafileBasename" "_ta.pem$") != 0 ]]; then
if [[ $(expr match "$tafileBasename" "*_ta.pem") != 0 ]]; then
oid=${tafileBasename%_ta.pem}
elif [[ $(expr match "$tafileBasename" "_ta.der$") != 0 ]]; then
elif [[ $(expr match "$tafileBasename" "*_ta.der") != 0 ]]; then
oid=${tafileBasename%_ta.der}
elif [[ $(expr match "$tafileBasename" "_ta.der.pem$") != 0 ]]; then
elif [[ $(expr match "$tafileBasename" "*_ta.der.pem") != 0 ]]; then
printf "I found a _ta.der.pem: %s\n" $tafilebasename
oid=${tafileBasename%_ta.der.pem}
else # It's some other filename
Expand Down

0 comments on commit 4ceb12c

Please sign in to comment.