Skip to content

Commit d52e08a

Browse files
committed
fix bash install to use eval
1 parent ab07864 commit d52e08a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/check-sample.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Run Checks
2222
id: checks
2323
run: |
24-
. <(curl -Ls https://s.defang.io/install)
24+
eval "$(curl -Ls https://s.defang.io/install)"
2525
./scripts/check-sample-files.sh > checklist.txt
2626
./scripts/check-modified-samples.sh > modified.txt
2727
echo "@@ MODIFIED @@"
@@ -31,7 +31,7 @@ jobs:
3131
# once we figure out how to prevent it from erroring on warnings.
3232
# - name: Validate Compose Files with Defang CLI
3333
# run: |
34-
# . <(curl -Ls https://s.defang.io/install)
34+
# eval "$(curl -Ls https://s.defang.io/install)"
3535
# cat modified.txt | xargs -n1 defang compose config -C > /dev/null
3636

3737
- name: Add checklist to PR description

samples/nextjs-documentation/app/pages/getting-started/installing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ brew install defang-io/defang/defang
1717
You can install the Defang CLI using a bash script. Just run the following command in your terminal:
1818

1919
```bash
20-
. <(curl -Ls https://s.defang.io/install)
20+
eval "$(curl -Ls https://s.defang.io/install)"
2121
```
2222

2323
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.

samples/vllm/ui/src/app/docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ brew install defang-io/defang/defang
107107
You can install the Defang CLI using a bash script. Just run the following command in your terminal:
108108

109109
```bash
110-
. <(curl -Ls https://s.defang.io/install)
110+
eval "$(curl -Ls https://s.defang.io/install)"
111111
```
112112

113113
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.

0 commit comments

Comments
 (0)