From c5a47e71f927fa4e3f26f230865f2aa7d36c1066 Mon Sep 17 00:00:00 2001 From: commit111 Date: Fri, 15 Nov 2024 14:46:00 -0800 Subject: [PATCH 1/4] update shell install to use eval --- docs/getting-started/installing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/installing.md b/docs/getting-started/installing.md index b47d63f36..cb4206192 100644 --- a/docs/getting-started/installing.md +++ b/docs/getting-started/installing.md @@ -20,7 +20,7 @@ We offer a few different ways to install the Defang CLI. You can use a shell scr You can install the Defang CLI using a shell script. Run the following command in your terminal: ```bash - . <(curl -Ls s.defang.io/install) + eval "$( curl -Ls https://s.defang.io/install)" ``` The script will try to download the appropriate binary for your operating system and architecture, add it to `~/.local/bin`, and add `~/.local/bin` to your `PATH` if it's not already there, with your permission. If you do not provide permission it will print an appropriate instruction for you to follow to add it manually. You can also customize the installation directory by setting the `INSTALL_DIR` environment variable before running the script. From 0167fab679fbf9469ace2cb9eb11e6c1e29fc287 Mon Sep 17 00:00:00 2001 From: commit111 Date: Sun, 17 Nov 2024 16:08:47 -0800 Subject: [PATCH 2/4] fix spacing --- docs/getting-started/installing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/installing.md b/docs/getting-started/installing.md index cb4206192..9a0e2fe77 100644 --- a/docs/getting-started/installing.md +++ b/docs/getting-started/installing.md @@ -20,7 +20,7 @@ We offer a few different ways to install the Defang CLI. You can use a shell scr You can install the Defang CLI using a shell script. Run the following command in your terminal: ```bash - eval "$( curl -Ls https://s.defang.io/install)" + eval "$(curl -Ls https://s.defang.io/install)" ``` The script will try to download the appropriate binary for your operating system and architecture, add it to `~/.local/bin`, and add `~/.local/bin` to your `PATH` if it's not already there, with your permission. If you do not provide permission it will print an appropriate instruction for you to follow to add it manually. You can also customize the installation directory by setting the `INSTALL_DIR` environment variable before running the script. From b58c7ccc1826d8b4c7eb38aebfed2ffb19f73566 Mon Sep 17 00:00:00 2001 From: commit111 Date: Wed, 20 Nov 2024 09:55:43 -0800 Subject: [PATCH 3/4] added f and S flags to curl --- docs/getting-started/installing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/installing.md b/docs/getting-started/installing.md index 9a0e2fe77..d75324022 100644 --- a/docs/getting-started/installing.md +++ b/docs/getting-started/installing.md @@ -20,7 +20,7 @@ We offer a few different ways to install the Defang CLI. You can use a shell scr You can install the Defang CLI using a shell script. Run the following command in your terminal: ```bash - eval "$(curl -Ls https://s.defang.io/install)" + eval "$(curl -fsSL https://s.defang.io/install)" ``` The script will try to download the appropriate binary for your operating system and architecture, add it to `~/.local/bin`, and add `~/.local/bin` to your `PATH` if it's not already there, with your permission. If you do not provide permission it will print an appropriate instruction for you to follow to add it manually. You can also customize the installation directory by setting the `INSTALL_DIR` environment variable before running the script. From e0bd4695513b3a62b1bc7f2ae63d3f2c6eb901f8 Mon Sep 17 00:00:00 2001 From: commit111 Date: Wed, 20 Nov 2024 12:51:48 -0800 Subject: [PATCH 4/4] remove http from url in curl --- docs/getting-started/installing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/installing.md b/docs/getting-started/installing.md index d75324022..e3350f4b3 100644 --- a/docs/getting-started/installing.md +++ b/docs/getting-started/installing.md @@ -20,7 +20,7 @@ We offer a few different ways to install the Defang CLI. You can use a shell scr You can install the Defang CLI using a shell script. Run the following command in your terminal: ```bash - eval "$(curl -fsSL https://s.defang.io/install)" + eval "$(curl -fsSL s.defang.io/install)" ``` The script will try to download the appropriate binary for your operating system and architecture, add it to `~/.local/bin`, and add `~/.local/bin` to your `PATH` if it's not already there, with your permission. If you do not provide permission it will print an appropriate instruction for you to follow to add it manually. You can also customize the installation directory by setting the `INSTALL_DIR` environment variable before running the script.