Fix issue with cask from alternative taps

This makes sure it correctly detects already installed casks like
logitech-options, which during installation needs to be specified as
"caskroom/drivers/logitech-options", but is then listed as
"logitech-options" on "cask list".
This commit is contained in:
2017-05-13 15:06:13 +01:00
parent 2e1dee2fa3
commit bc2b9d4bf0

View File

@@ -100,6 +100,10 @@ installed=( $(brew cask list) )
for pkg in "${pkgs[@]}"; do
base=$(echo $pkg | awk '{print $1}')
if [[ "$base" == *\/* ]]; then
base=$(basename "$base")
fi
found=""
for i in ${installed[@]}; do