Skip to content

Instantly share code, notes, and snippets.

@k14i
Created August 10, 2013 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k14i/6201314 to your computer and use it in GitHub Desktop.
Save k14i/6201314 to your computer and use it in GitHub Desktop.
Delete all conflicted copies on your Dropbox.
#!/usr/bin/env bash
DROPBOX_PATH="$HOME/Dropbox"
PREEXEC='sudo'
DUSTBOX='/tmp/rm'
DELETE_METHOD="$PREEXEC mv {} $DUSTBOX"
mkdir -p $DUSTBOX
$PREEXEC find $DROPBOX_PATH -name '*conflicted copy*' -exec $DELETE_METHOD \;
exit $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment