mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +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
|
for pkg in "${pkgs[@]}"; do
|
||||||
base=$(echo $pkg | awk '{print $1}')
|
base=$(echo $pkg | awk '{print $1}')
|
||||||
|
if [[ "$base" == *\/* ]]; then
|
||||||
|
base=$(basename "$base")
|
||||||
|
fi
|
||||||
|
|
||||||
found=""
|
found=""
|
||||||
|
|
||||||
for i in ${installed[@]}; do
|
for i in ${installed[@]}; do
|
||||||
|
|||||||
Reference in New Issue
Block a user