Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
executable file 21 lines (18 sloc) 483 Bytes
#!/usr/bin/env bash
# Prints/removes conflicted copies inside Dropbox folder.
#
# Usage:
# cleandropbox [--remove]
#
# Based on https://coderwall.com/p/tzjorw
#
# Author: Artem Sapegin, sapegin.me
# License: MIT
# https://github.com/sapegin/dotfiles
#
MASK="*(*'s conflicted copy [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]*"
if [ "$1" == "--remove" ] || [ "$1" == "--force" ]; then
find ~/Dropbox/ -path "$MASK" -exec rm -f {} \;
else
find ~/Dropbox/ -path "$MASK" -print
fi
You can’t perform that action at this time.