Skip to content

Commit

Permalink
update revoke.sh
Browse files Browse the repository at this point in the history
cleanup show_version
  • Loading branch information
acavella committed Dec 29, 2023
1 parent 0478581 commit b6f5e97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions revoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ defgw=$(./lib/yq4 -r .default.gateway ${config})
show_version() {
printf "$(date '+%Y-%m-%dT%H:%M:%S') [info] Revoke version: ${ver}\n"
printf "$(date '+%Y-%m-%dT%H:%M:%S') [info] Bash version: ${BASH_VERSION}\n"
printf "$(date '+%Y-%m-%dT%H:%M:%S') [info] Operating system: ${DETECTED_OS}\n"
}

make_temporary_log() {
Expand Down Expand Up @@ -91,7 +90,7 @@ download_crl() {
printf "$(date '+%Y-%m-%dT%H:%M:%S') [error] download failed ${crlID} zero byte file ${tempfile}\n"
exit 1
fi
openssl crl -inform DER -text -noout -in ${tempfile} | grep 'Certificate Revocation List' &> /dev/null
/usr/bin/openssl crl -inform DER -text -noout -in ${tempfile} | grep 'Certificate Revocation List' &> /dev/null
if [ $? == 1 ]
then
printf "$(date '+%Y-%m-%dT%H:%M:%S') [error] download failed ${crlID} invalid crl ${tempfile}\n"
Expand Down

0 comments on commit b6f5e97

Please sign in to comment.