Skip to content

Commit e575f83

Browse files
docs: add -L flag to curl commands to follow redirects (#359)
1 parent 489954e commit e575f83

File tree

2 files changed

+10
-42
lines changed

2 files changed

+10
-42
lines changed

README.md

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,10 @@ You can use prebuilt images generated by our CI workflow by downloading the dock
2929
- Linux Machine
3030

3131
```
32-
curl -o /tmp/crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/main.zip
33-
32+
curl -L -o /tmp/crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/main.zip
3433
unzip /tmp/crapi.zip
35-
3634
cd crAPI-main/deploy/docker
37-
3835
docker compose pull
39-
4036
docker compose -f docker-compose.yml --compatibility up -d
4137
```
4238
@@ -51,14 +47,10 @@ You can use prebuilt images generated by our CI workflow by downloading the dock
5147
- Windows Machine
5248

5349
```
54-
curl.exe -o crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/main.zip
55-
50+
curl.exe -L -o crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/main.zip
5651
tar -xf .\crapi.zip
57-
5852
cd crAPI-main/deploy/docker
59-
6053
docker compose pull
61-
6254
docker compose -f docker-compose.yml --compatibility up -d
6355
```
6456
@@ -75,14 +67,10 @@ You can use prebuilt images generated by our CI workflow by downloading the dock
7567
- Linux Machine
7668

7769
```
78-
curl -o /tmp/crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/develop.zip
79-
80-
unzip /tmp/crapi.zip
81-
70+
curl -L -o /tmp/crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/develop.zip
71+
unzip /tmp/crapi.zip
8272
cd crAPI-develop/deploy/docker
83-
8473
docker compose pull
85-
8674
docker compose -f docker-compose.yml --compatibility up -d
8775
```
8876
@@ -97,14 +85,10 @@ You can use prebuilt images generated by our CI workflow by downloading the dock
9785
- Windows Machine
9886
9987
```
100-
curl.exe -o crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/develop.zip
101-
88+
curl.exe -L -o crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/develop.zip
10289
tar -xf .\crapi.zip
103-
10490
cd crAPI-develop/deploy/docker
105-
10691
docker compose pull
107-
10892
docker compose -f docker-compose.yml --compatibility up -d
10993
```
11094

docs/setup.md

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@ You can use prebuilt images generated by our CI workflow by downloading the dock
2323
- Linux Machine
2424

2525
```
26-
curl -o /tmp/crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/main.zip
27-
26+
curl -L -o /tmp/crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/main.zip
2827
unzip /tmp/crapi.zip
29-
3028
cd crAPI-main/deploy/docker
31-
3229
docker compose pull
33-
3430
docker compose -f docker-compose.yml --compatibility up -d
3531
```
3632
@@ -45,14 +41,10 @@ You can use prebuilt images generated by our CI workflow by downloading the dock
4541
- Windows Machine
4642

4743
```
48-
curl.exe -o crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/main.zip
49-
44+
curl.exe -L -o crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/main.zip
5045
tar -xf .\crapi.zip
51-
5246
cd crAPI-main/deploy/docker
53-
5447
docker compose pull
55-
5648
docker compose -f docker-compose.yml --compatibility up -d
5749
```
5850
@@ -64,19 +56,15 @@ You can use prebuilt images generated by our CI workflow by downloading the dock
6456
LISTEN_IP="0.0.0.0" docker compose -f docker-compose.yml --compatibility up -d
6557
```
6658

67-
- To use the latest development version
59+
- To use the latest development version
6860

6961
- Linux Machine
7062

7163
```
72-
curl -o /tmp/crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/develop.zip
73-
64+
curl -L -o /tmp/crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/develop.zip
7465
unzip /tmp/crapi.zip
75-
7666
cd crAPI-develop/deploy/docker
77-
7867
docker compose pull
79-
8068
docker compose -f docker-compose.yml --compatibility up -d
8169
```
8270
@@ -91,14 +79,10 @@ You can use prebuilt images generated by our CI workflow by downloading the dock
9179
- Windows Machine
9280
9381
```
94-
curl.exe -o crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/develop.zip
95-
82+
curl.exe -L -o crapi.zip https://github.com/OWASP/crAPI/archive/refs/heads/develop.zip
9683
tar -xf .\crapi.zip
97-
9884
cd crAPI-develop/deploy/docker
99-
10085
docker compose pull
101-
10286
docker compose -f docker-compose.yml --compatibility up -d
10387
```
10488

0 commit comments

Comments
 (0)