1#!/bin/bash 2 3# Script to uninstall FixParts from OS X 4 5OSName=`uname -s` 6if [[ $OSName != 'Darwin' ]] ; then 7 echo "This script is useful only under OS X! Exiting!" 8 exit 1 9fi 10 11# Remove from pre-1.0.1 locations 12rm -f /usr/sbin/fixparts 13rm -rf /usr/share/doc/fixparts 14rm -f /usr/share/man/man8/fixparts.8 15 16# Remove from 1.0.1 (and later) locations 17rm -f /usr/local/bin/fixparts 18rm -rf /usr/local/doc/fixparts 19rm -f /usr/local/man/man8/fixparts.8 20 21echo "All FixParts program files successfully removed!" 22 23# And finally, erase this script itself.... 24rm -f /usr/local/bin/uninstall-fixparts 25