From 04b89c0ff7190e4ed177be8769184ad16a6b88b6 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Fri, 6 Sep 2024 22:49:05 +0800 Subject: [PATCH] Dockerfile: fix `style` failure See https://www.shellcheck.net/wiki/SC2174. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fde7c051f5..64ce1a2019 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,7 +45,8 @@ RUN apt-get update \ tzdata \ jq \ && if [ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 22 ]; then apt-get install -y --no-install-recommends skopeo; fi \ - && mkdir -p -m 755 /etc/apt/keyrings \ + && mkdir -p /etc/apt/keyrings \ + && chmod 0755 /etc /etc/apt /etc/apt/keyrings \ && curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg >/dev/null \ && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list >/dev/null \