Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (11 sloc) 565 Bytes
#!/bin/bash
TOTALFINDER_RESOURCES='/Applications/TotalFinder.app/Contents/Resources/TotalFinder.bundle/Contents/Resources'
TOTALFINDER_RESOURCES_BACKUP='/Applications/TotalFinder.app/Contents/Resources/TotalFinder.bundle/Contents/ResourcesOrig'
if [ -d "$TOTALFINDER_RESOURCES" ]; then # is it a folder?
if [ -L "$TOTALFINDER_RESOURCES" ]; then # is is a symlink?
sudo rm "$TOTALFINDER_RESOURCES"
sudo mv "$TOTALFINDER_RESOURCES_BACKUP" "$TOTALFINDER_RESOURCES"
exit
fi
fi
echo "Failed: TotalFinder is not installed or in dev mode"