Skip to content

Commit

Permalink
Update manual.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny096317 authored Jan 26, 2024
1 parent 20fb73e commit 9f0e458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
crlfile=$(cat ${sourcefile} | jq ".[$i].url" | sed 's/"//g')
wget $crlfile -O complete.crl
filename=$(cat ${sourcefile} | jq ".[$i].file" | sed 's/"//g')
openssl crl -nameopt utf8 -inform DER -text -in complete.crl | grep -q "Serial Number" | awk '{print $3}' > temp
openssl crl -nameopt utf8 -inform DER -text -in complete.crl | awk '/Serial Number/ {print $3}' > temp
awk -v RS= '/----/{next}{gsub(/\n/,"\",\"")}BEGIN{printf "\""}7' temp > temp2
SN="$(cat temp2)\""
version=$(openssl crl -nameopt utf8 -inform DER -text -in complete.crl | awk '/X509v3 CRL Number:/ {getline; gsub(/^[ \(/^[ \t]+|[ \t]+$/, ""); print}')
Expand Down

0 comments on commit 9f0e458

Please sign in to comment.