Cleaned up Brewfile and fixed a bug in mac.sh

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

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