Skip to content

Commit a5e1ede

Browse files
roberthstrandTim Bannister
andauthored
Wrong formatting on curl command for downloading latest release of kubectl (#22738)
* Update install-kubectl.md Wrong formatting on the first curl command * Update content/en/docs/tasks/tools/install-kubectl.md Correct syntax Co-authored-by: Tim Bannister <[email protected]> Co-authored-by: Tim Bannister <[email protected]>
1 parent 9e67f1c commit a5e1ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/tasks/tools/install-kubectl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You must use a kubectl version that is within one minor version difference of yo
2828
1. Download the latest release with the command:
2929

3030
```
31-
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
31+
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
3232
```
3333
3434
To download a specific version, replace the `$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)` portion of the command with the specific version.

0 commit comments

Comments
 (0)