Add error check to scripts

This commit is contained in:
Zhi Guan
2023-02-14 21:33:20 +08:00
parent 14fdc7a5f6
commit 538321d93c
4 changed files with 28 additions and 5 deletions

View File

@@ -1,4 +1,6 @@
#!/bin/bash
#!/bin/bash -x
set -e
signcert=ebssec.boc.cn-sign.pem
enccert=ebssec.boc.cn-enc.pem
@@ -113,7 +115,6 @@ gmssl certverify -in $double_chain -cacert $rootcacert -double_certs -check_crl
gmssl crlget -cert $signcert -out $crl
gmssl crlparse -in $crl
rm -fr $signcert
rm -fr $enccert
rm -fr $crl
@@ -124,3 +125,5 @@ rm -fr $chain_with_root
rm -fr $double_certs
rm -fr $double_chain
echo ok