Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilmartin83/53e56236d1c3bb91231f to your computer and use it in GitHub Desktop.
Save neilmartin83/53e56236d1c3bb91231f to your computer and use it in GitHub Desktop.
#!/bin/sh
## preinstall
if [[ -d "$3/Applications/Pro Tools.app" ]]; then
echo "Pro Tools has been previously installed, removing before installation…"
/bin/rm -rf "$3/Applications/Pro Tools.app"
else
echo "Pro Tools has not been previously installed, proceeding with installation…"
fi
exit 0
@neilmartin83
Copy link
Author

Pro Tools preinstall script - ensures that any pre-existing version is deleted. Installing a new version 'over the top' means there are some things left behind in the app bundle from the previous version and Pro Tools gets a little upset...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment