Created
February 1, 2017 11:02
-
-
Save ChrisCummins/9f5d84c167abc114482767dfe1b197d4 to your computer and use it in GitHub Desktop.
Find and optionally remove conflicted Dropbox files.
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
#!/usr/bin/env bash | |
# | |
# Find and optionally remove conflicted Dropbox files. | |
# Feb 2017 Chris Cummins <chrisc.101@gmail.com> | |
# | |
# Usage: | |
# ./find-dropbox-conflicts.sh # list conflicted files | |
# ./find-dropbox-conflicts.sh --rm # remove conflicted files | |
# | |
if [[ "$1" == "--rm" ]]; then | |
find ~/Dropbox -name '*conflicted copy*' -exec rm -v {} \; | |
else | |
find ~/Dropbox -name '*conflicted copy*' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment