Cleaned up Brewfile and fixed a bug in mac.sh

This commit is contained in:
Christian Baer 2020-09-27 08:26:23 +02:00
parent 980a0f5c77
commit 7e9e824def
2 changed files with 9 additions and 6 deletions

View File

@ -31,7 +31,7 @@ brew "gotop"
brew "htop"
brew "hugo"
brew "iperf"
brew "iperf3"
#brew "iperf3"
brew "ipmitool"
brew "jq"
brew "koekeishiya/formulae/skhd"
@ -73,7 +73,7 @@ cask "diskmaker-x"
cask "drawio"
cask "evolv-escribe-suite"
cask "fantastical"
cask "filebot"
#cask "filebot"
cask "firefox"
cask "fluid"
cask "fog"
@ -108,12 +108,12 @@ cask "shifty"
cask "sloth"
cask "sonos"
cask "spotify"
cask "stats"
#cask "stats"
cask "thunderbird"
cask "transmission"
cask "transmit"
cask "tunnelblick"
cask "tuxera-ntfs"
#cask "tuxera-ntfs"
cask "typora"
cask "virtualbox"
cask "virtualbox-extension-pack"
@ -148,6 +148,5 @@ mas "ShutterCount", id: 720123827
mas "The Unarchiver", id: 425424353
mas "Todoist", id: 585829637
mas "Tweetbot", id: 557168941
mas "VPN Monitor", id: 887410814
mas "WhatsApp", id: 1147396723
mas "Xcode", id: 497799835
#mas "Xcode", id: 497799835

View File

@ -219,6 +219,10 @@ done
find $MAC_DOWNLOAD -name "*.dmg" -print0 | while IFS= read -r -d '' f; do
echo ">>> Processing ${f}"
hdiutil attach $f -quiet -mountpoint ${MAC_INSTALLMOUNT}
find ${MAC_INSTALLMOUNT} -name "*.pkg" -print0 | while IFS= read -r -d '' f; do
echo ">>> Processing ${f}"
sudo installer -pkg "$f" -target /
done
cp -rf ${MAC_INSTALLMOUNT}/*.app /Applications
hdiutil detach ${MAC_INSTALLMOUNT} -quiet
done