diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 1b041e589..29c2d9e41 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Install defang (latest) - run: . <(curl -Ls https://s.defang.io/install) + run: eval "$(curl -Ls https://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: . <(curl -Ls https://s.defang.io/install) + run: eval "$(curl -Ls https://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 4e6182ff7..ea4e6dd99 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: ``` - . <(curl -Ls https://s.defang.io/install) + eval "$(curl -Ls https://s.defang.io/install)" ``` * Using [Go](https://go.dev): diff --git a/src/bin/install b/src/bin/install index 3a1b6dfa0..17a80f715 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: # # # -# . <(curl -Ls https://s.defang.io/install) # +# eval "$(curl -Ls https://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 9c1196a5f..7f9378b5a 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(`. <(curl -Ls https://s.defang.io/install)`) + printInstructions(`eval "$(curl -Ls https://s.defang.io/install)"`) return nil }