Skip to content

Instantly share code, notes, and snippets.

@jamescook
Created January 26, 2012 14:43
Show Gist options
  • Save jamescook/1683077 to your computer and use it in GitHub Desktop.
Save jamescook/1683077 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Usage: dropbox SomeClientFolder
if [ $# = 0 ]; then
echo "Specify a folder."
exit 0
fi
if [ -d ~/Dropbox/$1 ]; then
subfolder=$1
mkdir -p ~/tmp/$subfolder
cp -R ~/Dropbox/$subfolder ~/tmp/
open ~/tmp/$subfolder
else
echo "Invalid folder."
exit 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment