Skip to content

Commit 42ef8ee

Browse files
committed
fix install.sh->install
1 parent d9d81f1 commit 42ef8ee

File tree

6 files changed

+27
-5
lines changed

6 files changed

+27
-5
lines changed

.github/workflows/install.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Install script
2+
3+
on:
4+
release:
5+
types: [published]
6+
push:
7+
branches:
8+
- main
9+
paths:
10+
- '.github/workflows/install.yml'
11+
- 'src/bin/install'
12+
13+
jobs:
14+
install:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Install defang
19+
run: . <(curl -Ls https://s.defang.io/install)
20+
21+
- name: Login to Defang
22+
run: defang version

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Install the Defang CLI from one of the following sources:
2323
```
2424
* Using a shell script:
2525
```
26-
. <(curl -Ls https://s.defang.io/install.sh)
26+
. <(curl -Ls https://s.defang.io/install)
2727
```
2828
* Using [Go](https://go.dev):
2929
```

samples/nodejs/document-starter/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.sh)
20+
. <(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/nodejs/nextjs-github-actions/.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v4
2121

2222
- name: Install defang
23-
run: . <(curl -Ls https://s.defang.io/install.sh)
23+
run: . <(curl -Ls https://s.defang.io/install)
2424

2525
- name: Login to Defang
2626
run: defang login

samples/other/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.sh)
110+
. <(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.

src/bin/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ _prompt_and_append_to_file() {
150150
if [[ $REPLY =~ ^[Yy]$ ]]; then
151151
# Append the line to the profile file
152152
echo >> "$profile_file"
153-
echo "$line # Added by Defang install.sh" >> "$profile_file"
153+
echo "$line # Added by Defang install" >> "$profile_file"
154154
else
155155
# Print the command for the user to run manually
156156
echo "To manually add the required line, run the following command:"

0 commit comments

Comments
 (0)