mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 06:26:39 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user