Commit 4d1fcc3
authored
Revise Management console API Authentication curl example
Current `curl` example doesn't work if the Management Console password contains `@` character.
```
#!/bin/bash
set -eu
export your_amazing_password=foo@bar
export hostname=my-ghes.example.com
curl -L https://api_key:${your_amazing_password}@${hostname}:8443/setup/api
```
```
$ bash maintenance-demo.sh
curl: (6) Could not resolve host: bar@my-ghes.example.com
```
`curl -u (--user)` option solves the problem.1 parent 5933365 commit 4d1fcc3
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
0 commit comments