Skip to content

Instantly share code, notes, and snippets.

@JoeyPinilla
Forked from jacobsalmela/app-store-pkgs.sh
Created August 28, 2016 12:08
Show Gist options
  • Select an option

  • Save JoeyPinilla/b807e8f58e9a0382697891a1b40f9c17 to your computer and use it in GitHub Desktop.

Select an option

Save JoeyPinilla/b807e8f58e9a0382697891a1b40f9c17 to your computer and use it in GitHub Desktop.
Save App Store downloads as .pkgs
#!/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