Skip to content
Snippets Groups Projects
Verified Commit a6d30c57 authored by Martin Petráček's avatar Martin Petráček
Browse files

get-api-crl: return failure if CRL file doesn't exist

parent ad027c8c
No related branches found
No related tags found
No related merge requests found
......@@ -20,4 +20,5 @@ set +e
curl -k https://api.turris.cz/crl -o "$DIR/crl.pem" && mv "$DIR/crl.pem" /tmp/crl.pem
# Even if it fails, we want to return success. That way, any possible previous
# version of the CRL may still be used unless it expired.
true
# The only case when we want to return failure is when the file /tmp/crl.pem doesn't exist.
[ -f /tmp/crl.pem ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment