From 5870de2b18d2159774ace251d1768fd20adc4554 Mon Sep 17 00:00:00 2001 From: johnny096317 <68207841+johnny096317@users.noreply.github.com> Date: Fri, 26 Jan 2024 09:38:59 +0800 Subject: [PATCH] Update manual.yml --- .github/workflows/manual.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 5f25e90..7540acf 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -27,7 +27,8 @@ jobs: #for ((i = 0; i < ${array_length}; i++)); do #crlfile=$(cat ${sourcefile} | jq ".[$i].url" | sed 's/"//g') wget $crlfile -O complete.crl - filename=$(cat ${sourcefile} | jq ".[$i].file" | sed 's/"//g') + filename=$(cat ${sourcefile} | jq ".[6].file" | sed 's/"//g') + openssl crl -nameopt utf8 -inform DER -text -in complete.crl openssl crl -nameopt utf8 -inform DER -text -in complete.crl | grep "Serial Number" | cut -d " " -f 7 > temp echo $? awk -v RS= '/----/{next}{gsub(/\n/,"\",\"")}BEGIN{printf "\""}7' temp > temp2