Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
gptfdisk/uninstall-fixparts
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
24 lines (18 sloc)
593 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |