Skip to content

Instantly share code, notes, and snippets.

@ickc
Created January 17, 2020 02:35
Show Gist options
  • Save ickc/4432afeccb5e928fb3a98795695a46bc to your computer and use it in GitHub Desktop.
Save ickc/4432afeccb5e928fb3a98795695a46bc to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# usage DRYRUN=1 ./rm-colormunki-photo.sh
# c.f. https://xritephoto.com/ph_product_overview.aspx?ID=2458&Action=Support&SupportID=5932
# not all Logs will not be deleted
if [[ -n "$DRYRUN" ]]; then
rmxrite=echo
else
rmxrite='sudo rm -rf'
fi
find /Applications -maxdepth 1 -name 'ColorMunki*' -type d -exec $rmxrite {} +
$rmxrite '/Library/Application Support/X-Rite'
find '/Library/Application Support' -maxdepth 1 -name 'ColorMunki*' -type d -exec $rmxrite {} +
$rmxrite /Library/ColorPickers/ColormunkiPicker.colorPicker
find /Library/LaunchDaemons -name 'com.xrite*' -exec $rmxrite {} +
find /Library/LaunchAgents -name 'com.xrite*' -exec $rmxrite {} +
find /Library/Frameworks -name 'XRite*.framework' -exec $rmxrite {} +
# Logs
$rmxrite '/Users/kolen/Library/Application Support/ColorMunki'
find ~/Library/Logs -name 'ColorMunki*' -exec $rmxrite {} +
find ~/Library/Preferences -name 'com.x*rite.*' -exec $rmxrite {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment