docs/Installation: Use the documented --strip-components tar argument

`--strip-components` is the documented tar option, `--strip` only works because tar (both BSD and GNU) does partial matching on long options.
This commit is contained in:
Brendan Shanks 2024-05-10 08:39:17 -07:00 committed by GitHub
parent f590dadbf2
commit fced907a63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,7 +61,7 @@ Technically, you can just extract (or `git clone`) Homebrew wherever you want. H
**TL;DR: pick another prefix at your peril!**
```sh
mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip-components 1 -C homebrew
```
or: