Last active
August 29, 2015 13:56
-
-
Save lepinkainen/9186395 to your computer and use it in GitHub Desktop.
Start dropbox in a shell if it's not running
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
# 1) install dropbox in a shell using the instructions provided here | |
# https://www.dropbox.com/install?os=linux | |
# 2) install the cli script as ~/bin/dropbox | |
# https://www.dropbox.com/download?dl=packages/dropbox.py | |
# 3) add the following to your .bash_profile | |
# start dropbox on login if it's not running | |
if [ -f ~/bin/dropbox ]; then | |
~/bin/dropbox running | |
if [ $? -ne 0 ]; then | |
echo "Dropbox running" | |
else echo "Dropbox not running, starting it" | |
~/bin/dropbox start | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment