From 0bcc4d49e68e3a62ada8f5ac1e5eccf166cab973 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Thu, 10 Nov 2022 19:37:20 +0100 Subject: [PATCH] Quoting variable expansions Whatever comes back from that web service might not be what you expect and if you then insert it without quoting, things explode. --- docs/Installation-Guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Installation-Guide.md b/docs/Installation-Guide.md index 71dd0689..fda36127 100644 --- a/docs/Installation-Guide.md +++ b/docs/Installation-Guide.md @@ -38,7 +38,7 @@ argocd-autopilot version VERSION=$(curl --silent "https://api.github.com/repos/argoproj-labs/argocd-autopilot/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/') # download and extract the binary -curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/$VERSION/argocd-autopilot-linux-amd64.tar.gz | tar zx +curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/"$VERSION"/argocd-autopilot-linux-amd64.tar.gz | tar zx # move the binary to your $PATH mv ./argocd-autopilot-* /usr/local/bin/argocd-autopilot @@ -53,7 +53,7 @@ argocd-autopilot version VERSION=$(curl --silent "https://api.github.com/repos/argoproj-labs/argocd-autopilot/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/') # download and extract the binary -curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/$VERSION/argocd-autopilot-darwin-amd64.tar.gz | tar zx +curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/"$VERSION"/argocd-autopilot-darwin-amd64.tar.gz | tar zx # move the binary to your $PATH mv ./argocd-autopilot-* /usr/local/bin/argocd-autopilot