Skip to content

Instantly share code, notes, and snippets.

@natewalck
Created January 4, 2013 16:14
Show Gist options
  • Save natewalck/4453781 to your computer and use it in GitHub Desktop.
Save natewalck/4453781 to your computer and use it in GitHub Desktop.
removeiLife11.sh
#!/bin/sh
# start here
removables=(
"Applications/GarageBand.app"
"Applications/iMovie.app"
"Applications/iPhoto.app"
"Library/Application Support/GarageBand"
"Library/Audio/Apple Loops"
"Library/Audio/Apple Loops Index"
"var/db/receipts/com.apple.pkg.GarageBandBasicContent.bom"
"var/db/receipts/com.apple.pkg.GarageBandBasicContent.plist"
"var/db/receipts/com.apple.pkg.GarageBand_AppStore.bom"
"var/db/receipts/com.apple.pkg.GarageBand_AppStore.plist"
"var/db/receipts/com.apple.pkg.iMovie_AppStore.bom"
"var/db/receipts/com.apple.pkg.iMovie_AppStore.plist"
"var/db/receipts/com.apple.pkg.iPhoto_AppStore.bom"
"var/db/receipts/com.apple.pkg.iPhoto_AppStore.plist"
)
for removable in "${removables[@]}" ; do
if [ -e "/Volumes/Macintosh HD/${removable}" ] ; then
echo "Removing: /Volumes/Macintosh HD/${removable}"
rm -rf "/Volumes/Macintosh HD/${removable}"
fi
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment