From dabd09f7cbb1a4536433eeb6a70c70a902d23aed Mon Sep 17 00:00:00 2001 From: Carl Tashian <carl@smallstep.com> Date: Tue, 29 Jun 2021 15:54:46 -0700 Subject: [PATCH] Cosmetics --- Dockerfile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index dec3ce7..c538a85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,17 +14,17 @@ RUN apt update; \ ; \ curl -ks "${CA_URL}/root/${CA_FINGERPRINT}" \ | jq -re ".ca" \ - | tee /usr/local/share/ca-certificates/root_ca.crt; \ - fingerprint=$(openssl x509 -in /usr/local/share/ca-certificates/root_ca.crt -noout -sha256 -fingerprint \ + | tee /usr/local/share/ca-certificates/root_ca.crt; \ + fingerprint=$(openssl x509 -in /usr/local/share/ca-certificates/root_ca.crt -noout -sha256 -fingerprint \ | tr -d ":" \ | cut -d "=" -f 2 \ | tr "[:upper:]" "[:lower:]"); \ - if [ $fingerprint = ${CA_FINGERPRINT} ]; then \ - /usr/sbin/update-ca-certificates; \ - else \ - echo >&2; \ - echo >&2 "error: CA certificate fingerprint $fingerprint does not match expected value ${CA_FINGERPRINT}"; \ - echo >&2; \ - exit 1; \ - fi; \ - rm -rf /var/lib/apt/lists/* + if [ $fingerprint = ${CA_FINGERPRINT} ]; then \ + /usr/sbin/update-ca-certificates; \ + else \ + echo >&2; \ + echo >&2 "error: CA certificate fingerprint $fingerprint does not match expected value ${CA_FINGERPRINT}"; \ + echo >&2; \ + exit 1; \ + fi; \ + rm -rf /var/lib/apt/lists/* -- GitLab