Merge pull request #4917 from yurikoles/fix-cleanup-doc

add quotes surrounding $(brew --cache) in help for cleanup command
This commit is contained in:
Mike McQuaid 2018-09-17 15:52:01 +01:00 committed by GitHub
commit d639559c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
#: #:
#: If `-s` is passed, scrub the cache, including downloads for even the latest #: If `-s` is passed, scrub the cache, including downloads for even the latest
#: versions. Note downloads for any installed formula or cask will still not #: versions. Note downloads for any installed formula or cask will still not
#: be deleted. If you want to delete those too: `rm -rf $(brew --cache)` #: be deleted. If you want to delete those too: `rm -rf "$(brew --cache)"`
require "cleanup" require "cleanup"
require "cli_parser" require "cli_parser"

View File

@ -62,7 +62,7 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
If `-s` is passed, scrub the cache, including downloads for even the latest If `-s` is passed, scrub the cache, including downloads for even the latest
versions. Note downloads for any installed formula or cask will still not versions. Note downloads for any installed formula or cask will still not
be deleted. If you want to delete those too: `rm -rf $(brew --cache)` be deleted. If you want to delete those too: `rm -rf "$(brew --cache)"`
* `command` `cmd`: * `command` `cmd`:
Display the path to the file which is used when invoking `brew` `cmd`. Display the path to the file which is used when invoking `brew` `cmd`.

View File

@ -65,7 +65,7 @@ If \fB\-\-prune=\fR\fIdays\fR is specified, remove all cache files older than \f
If \fB\-\-dry\-run\fR or \fB\-n\fR is passed, show what would be removed, but do not actually remove anything\. If \fB\-\-dry\-run\fR or \fB\-n\fR is passed, show what would be removed, but do not actually remove anything\.
. .
.IP .IP
If \fB\-s\fR is passed, scrub the cache, including downloads for even the latest versions\. Note downloads for any installed formula or cask will still not be deleted\. If you want to delete those too: \fBrm \-rf $(brew \-\-cache)\fR If \fB\-s\fR is passed, scrub the cache, including downloads for even the latest versions\. Note downloads for any installed formula or cask will still not be deleted\. If you want to delete those too: \fBrm \-rf "$(brew \-\-cache)"\fR
. .
.IP "\(bu" 4 .IP "\(bu" 4
\fBcommand\fR \fIcmd\fR: Display the path to the file which is used when invoking \fBbrew\fR \fIcmd\fR\. \fBcommand\fR \fIcmd\fR: Display the path to the file which is used when invoking \fBbrew\fR \fIcmd\fR\.