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 | |
# macos-util-find-DS_Store.sh inspired by https://github.com/krypted/DS_Store_Folders | |
# searches a mac for .DS_Store directories and fails if any are found and returns a multi-line output if there are more than one found | |
# https://gist.github.com/systemswizard | |
if [[ $(mdfind kind:folders AND kMDItemDisplayName:.DS_Store) ]]; then | |
echo ".DS_Store folder(s) found" | |
exit 1 | |
else | |
echo "Could not find any .DS_Store folders" |
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/sh | |
# macos-uninst-forticlient.sh | |
# https://gist.github.com/systemswizard | |
# Uninstalls FortiClient and its components - Tested on FortiClient SSL Client 6.x-7.1.x | |
pkill FortiClientAgent | |
launchctl unload /Library/LaunchDaemons/com.fortinet* | |
rm -Rfv /Applications/FortiClient.app | |
rm -Rfv /Applications/FortiClientUninstaller.app | |
rm -Rfv /Library/Application\ Support/Fortinet |