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 64fe49b commit 23354b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
wget $crlfile -O complete.crl
filename=$(cat ${sourcefile} | jq ".[$i].file" | sed 's/"//g')
echo $?
openssl crl -nameopt utf8 -inform DER -text -in complete.crl | grep "Serial Number" | awk '{print $3}' > temp
openssl crl -nameopt utf8 -inform DER -text -in complete.crl | grep "Serial Number" | awk '{print $3}' | echo $?
openssl crl -nameopt utf8 -inform DER -text -in complete.crl | grep "Serial Number" | awk '{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 23354b6

Please sign in to comment.