Created
December 30, 2014 03:15
-
-
Save jacobsalmela/2a43b6cd2d6de81e96a7 to your computer and use it in GitHub Desktop.
Save App Store downloads as .pkgs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
appStoreFolder=$(sudo find /private/var/folders -type f -name "*.pkg") | |
i=0 | |
for package in $appStoreFolder | |
do | |
sudo ln $package ~/Downloads/_MAS_$i.pkg | |
i=$(($i+1)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment