File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ test_ta () {
23
23
24
24
tafileBasename=$( basename $tafile )
25
25
26
+ # strip off the friendly name
27
+ tafileBasename=$( echo $tafileBasename | egrep -o ' [^-]+_ta.der$' )
28
+
26
29
# strip off the file suffix to get the OID name
27
30
if [[ $( expr match " $tafileBasename " " .*_ta\.pem$" ) != 0 ]]; then
28
31
oid=${tafileBasename% _ta.pem}
Original file line number Diff line number Diff line change @@ -26,10 +26,7 @@ test_ta () {
26
26
27
27
# strip off the file suffix to get the OID name
28
28
if [[ $( expr match " $tafileBasename " " .*_ta\.der$" ) != 0 ]]; then
29
- oid=${tafileBasename% _ta.der}
30
-
31
- printf " DEBUG: filename: $tafileBasename , OID: $oid \n"
32
-
29
+ oid=${tafileBasename% _ta.der}
33
30
else # It's some other filename
34
31
printf " ERROR: file name is not in the expected format: %s\n" $tafileBasename
35
32
printf " ERROR: file name is not in the expected format: %s\n" $tafileBasename >> $logfile
You can’t perform that action at this time.
0 commit comments