You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
593 B
25 lines
593 B
4 months ago
|
#!/bin/bash
|
||
|
|
||
|
# Script to uninstall FixParts from OS X
|
||
|
|
||
|
OSName=`uname -s`
|
||
|
if [[ $OSName != 'Darwin' ]] ; then
|
||
|
echo "This script is useful only under OS X! Exiting!"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
# Remove from pre-1.0.1 locations
|
||
|
rm -f /usr/sbin/fixparts
|
||
|
rm -rf /usr/share/doc/fixparts
|
||
|
rm -f /usr/share/man/man8/fixparts.8
|
||
|
|
||
|
# Remove from 1.0.1 (and later) locations
|
||
|
rm -f /usr/local/bin/fixparts
|
||
|
rm -rf /usr/local/doc/fixparts
|
||
|
rm -f /usr/local/man/man8/fixparts.8
|
||
|
|
||
|
echo "All FixParts program files successfully removed!"
|
||
|
|
||
|
# And finally, erase this script itself....
|
||
|
rm -f /usr/local/bin/uninstall-fixparts
|