-
-
Save JoeyPinilla/b807e8f58e9a0382697891a1b40f9c17 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