Luca Favatella
ece34dbe26
cask doctor: fix for non-standard installation location in ~
Symptom (relevant portions):
```
$ brew cask doctor
==> Homebrew-Cask Version
Homebrew-Cask 1.6.7-56-g9ebcef7
Homebrew/homebrew-cask (git revision fc24e; last commit 2018-06-09)
==> macOS
10.13.5
==> SIP
Enabled
...
==> Homebrew-Cask Install Location
<NONE>
==> Homebrew-Cask Staging Location
~/homebrew/Caskroom
...
==> Environment Variables
HOMEBREW_CASK_OPTS="--appdir=~/Applications"
LC_ALL="en_US.UTF-8"
PATH="/usr/bin:/bin:/usr/sbin:/sbin:~/homebrew/Library/Homebrew/shims/scm"
SHELL="/bin/bash"
Cask's Doctor Checkup: failed
- The staging path ~/homebrew/Caskroom does not exist.
Error: There are some problems with your setup.
```
Analysis:
* The source code is
[this](9ebcef785e/Library/Homebrew/cask/lib/hbc/cli/doctor.rb (L63-L66)
).
* The issue is reproducible in `brew irb`:
```
$ ls -dl ~/homebrew/Caskroom
drwxrwxr-x 10 luca admin 340 9 Jun 16:22 /Users/luca/homebrew/Caskroom
$ ( cd ~ && pwd; )
/Users/luca
$ ls -dl /Users/luca/homebrew/Caskroom
drwxrwxr-x 10 luca admin 340 9 Jun 16:22 /Users/luca/homebrew/Caskroom
$ brew irb
==> Interactive Homebrew Shell
Example commands available with: brew irb --examples
irb(main):001:0> Pathname.new("~/homebrew/Caskroom").exist?
=> false
irb(main):002:0> Pathname.new("/Users/luca/homebrew/Caskroom").exist?
=> true
```
2018-06-14 23:58:03 +01:00
..
2017-05-22 02:51:17 +02:00
2018-06-09 11:18:40 +02:00
2017-05-22 02:51:17 +02:00
2018-06-09 11:18:40 +02:00
2017-09-11 09:04:51 +02:00
2018-06-09 11:13:37 +02:00
2017-10-18 14:39:09 +02:00
2018-06-14 23:58:03 +01:00
2017-10-15 22:04:20 +02:00
2018-06-09 11:13:37 +02:00
2017-06-13 19:45:29 +02:00
2018-04-14 11:44:19 +02:00
2018-06-09 11:18:40 +02:00
2018-06-11 13:15:32 +10:00
2017-09-11 09:04:51 +02:00
2017-05-22 02:51:17 +02:00
2018-04-14 11:45:51 +02:00
2018-06-09 11:18:40 +02:00
2017-05-24 20:16:09 +02:00
2018-04-14 11:45:51 +02:00
2017-09-11 09:04:51 +02:00
2018-06-07 18:42:30 +02:00
2018-04-14 11:45:51 +02:00
2017-10-18 14:39:09 +02:00
2018-06-09 11:27:44 +02:00
2018-04-29 08:49:02 +10:00