From d8ac10917ebf94fe348693413730d84aa71514de Mon Sep 17 00:00:00 2001 From: ftambara <98750668+ftambara@users.noreply.github.com> Date: Sat, 30 Sep 2023 08:09:58 -0300 Subject: [PATCH] fix: remove excessive quoting in engine/install The removed quotes cause ShellCheck SC2027 and SC2046 warnings --- content/engine/install/debian.md | 4 ++-- content/engine/install/raspberry-pi-os.md | 4 ++-- content/engine/install/ubuntu.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/content/engine/install/debian.md b/content/engine/install/debian.md index f69aa9e586..b8b10f1ad8 100644 --- a/content/engine/install/debian.md +++ b/content/engine/install/debian.md @@ -103,8 +103,8 @@ Docker from the repository. # Add the repository to Apt sources: echo \ - "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] {{% param "download-url-base" %}} \ - "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] {{% param "download-url-base" %}} \ + $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update ``` diff --git a/content/engine/install/raspberry-pi-os.md b/content/engine/install/raspberry-pi-os.md index 1608031a65..8e761c286f 100644 --- a/content/engine/install/raspberry-pi-os.md +++ b/content/engine/install/raspberry-pi-os.md @@ -102,8 +102,8 @@ Docker from the repository. # Set up Docker's Apt repository: echo \ - "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] {{% param "download-url-base" %}} \ - "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] {{% param "download-url-base" %}} \ + $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update ``` diff --git a/content/engine/install/ubuntu.md b/content/engine/install/ubuntu.md index 6ab6da1f20..cb374e1cd4 100644 --- a/content/engine/install/ubuntu.md +++ b/content/engine/install/ubuntu.md @@ -114,8 +114,8 @@ Docker from the repository. # Add the repository to Apt sources: echo \ - "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] {{% param "download-url-base" %}} \ - "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] {{% param "download-url-base" %}} \ + $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update ```