From 9dd352116ec78318ec3ae8b7430ed46a0cbad1a8 Mon Sep 17 00:00:00 2001 From: Nadeesha Cabral Date: Tue, 26 Oct 2021 11:50:13 +1100 Subject: [PATCH] fix: Template-ify CLI_VERSION in Makefile --- Makefile | 2 +- install.sh => install.sh.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename install.sh => install.sh.template (93%) diff --git a/Makefile b/Makefile index 4e00d84..2a83828 100644 --- a/Makefile +++ b/Makefile @@ -8,4 +8,4 @@ setup_semantic_release: npm i @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/github @semantic-release/changelog @semantic-release/exec @semantic-release/git update_install_script_version: - sed -i "s/CLI_VERSION/$(version)/g" install.sh \ No newline at end of file + sed "s/CLI_VERSION/$(version)/g" install.sh.template > install.sh \ No newline at end of file diff --git a/install.sh b/install.sh.template similarity index 93% rename from install.sh rename to install.sh.template index 10c4d51..8268eb7 100755 --- a/install.sh +++ b/install.sh.template @@ -49,7 +49,7 @@ mkdir -p cloudstate/bin cd cloudstate/bin - URL="https://github.com/usecloudstate/cli/releases/download/1.0.8/cloudstate-cli-\$OS-\$ARCH" + URL="https://github.com/usecloudstate/cli/releases/download/CLI_VERSION/cloudstate-cli-\$OS-\$ARCH" echo "Installing CLI from \$URL" if [ \$(command -v curl) ]; then