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 f9c7227 commit 38ac294
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test_certs_r3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ 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
printf "I found a _ta.der.pem: %s\n" $tafilebasename
elif [[ $(expr match "$tafileBasename" ".*_ta\.der\.pem") != 0 ]]; then
printf "DEBUG: I found a _ta.der.pem: %s\n" $tafilebasename
oid=${tafileBasename%_ta.der.pem}
else # It's some other filename
printf "ERROR: file name is not in the expected format: %s\n" $tafileBasename
Expand Down

0 comments on commit 38ac294

Please sign in to comment.