From 89a9d01c2926cc78a7ab20a65726caa97318f445 Mon Sep 17 00:00:00 2001 From: commit111 Date: Wed, 20 Nov 2024 12:00:09 -0800 Subject: [PATCH 1/2] remove http from url in curl --- .github/workflows/install.yml | 4 ++-- README.md | 2 +- src/bin/install | 2 +- src/pkg/cli/upgrade.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 62449fbd2..e59b731f8 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Install defang (latest) - run: eval "$(curl -fsSL https://s.defang.io/install)" + run: eval "$(curl -fsSL s.defang.io/install)" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # avoid rate limiting @@ -24,7 +24,7 @@ jobs: run: defang --version - name: Install defang (specific version) - run: eval "$(curl -fsSL https://s.defang.io/install)" + run: eval "$(curl -fsSL s.defang.io/install)" env: DEFANG_INSTALL_VERSION: v0.5.36 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # alt name diff --git a/README.md b/README.md index a07b81abf..6e54b5202 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Install the Defang CLI from one of the following sources: * Using a shell script: ``` - eval "$(curl -fsSL https://s.defang.io/install)" + eval "$(curl -fsSL s.defang.io/install)" ``` * Using [Go](https://go.dev): diff --git a/src/bin/install b/src/bin/install index c53ef210b..e64297609 100644 --- a/src/bin/install +++ b/src/bin/install @@ -3,7 +3,7 @@ # This script installs the latest release of defang from GitHub. It is designed # # to be run like this: # # # -# eval "$(curl -fsSL https://s.defang.io/install)" # +# eval "$(curl -fsSL s.defang.io/install)" # # # # This allows us to do some interactive stuff where we can prompt the user for input. # # # diff --git a/src/pkg/cli/upgrade.go b/src/pkg/cli/upgrade.go index 82a9f3c8d..b03458ab9 100644 --- a/src/pkg/cli/upgrade.go +++ b/src/pkg/cli/upgrade.go @@ -49,7 +49,7 @@ func Upgrade(ctx context.Context) error { } // Default to the shell script - printInstructions(`eval "$(curl -fsSL https://s.defang.io/install)"`) + printInstructions(`eval "$(curl -fsSL s.defang.io/install)"`) return nil } From bd96ac2407aa731bd1a0ac72d72d1e90bb63a0a1 Mon Sep 17 00:00:00 2001 From: commit111 Date: Wed, 20 Nov 2024 12:06:54 -0800 Subject: [PATCH 2/2] refine install --- src/bin/install | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/bin/install b/src/bin/install index e64297609..e9704c147 100644 --- a/src/bin/install +++ b/src/bin/install @@ -1,13 +1,13 @@ -################################################################################################ -# # -# This script installs the latest release of defang from GitHub. It is designed # -# to be run like this: # -# # +####################################################################################### +# # +# This script installs the latest release of defang from GitHub. It is designed # +# to be run like this: # +# # # eval "$(curl -fsSL s.defang.io/install)" # -# # -# This allows us to do some interactive stuff where we can prompt the user for input. # -# # -################################################################################################ +# # +# This allows us to do some interactive stuff where we can prompt the user for input. # +# # +####################################################################################### echo "\ __ ____