Skip to content

Instantly share code, notes, and snippets.

View odd's full-sized avatar
💭
Functioning

Odd Möller odd

💭
Functioning
View GitHub Profile
@odd
odd / dropbox-resolve.sh
Last active March 1, 2017 12:03 — forked from wilson428/dropbox.sh
Fix Dropbox conflicts automatically.
#!/bin/bash
#Modified from https://gist.github.com/wilson428/40c0b8bf7ecba5a301f6
#Added modifications from https://gist.github.com/nbartzokas/416400824ef2dcf4248e4c75c2d25cfa
#Thx, http://stackoverflow.com/questions/20723868/batch-rename-dropbox-conflict-files
getopts "r" replace && shift
folder=${1:-$(pwd)}
backup=${2:-$(pwd).backup}