diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-12-27 14:31:06 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-12-27 14:31:06 -0200 |
commit | 03fdeb451b3bf1c63e3f2a725bf9bdb8e137f0a7 (patch) | |
tree | 0d3b7a75a2b5803b7e9df9dab5431e67c4477c5b /metadot | |
parent | 05ea84ced3cefd57c5858c8043f349ce45a22fd5 (diff) | |
download | dotfiles-03fdeb451b3bf1c63e3f2a725bf9bdb8e137f0a7.tar.gz dotfiles-03fdeb451b3bf1c63e3f2a725bf9bdb8e137f0a7.tar.bz2 |
Preparing to split metadot code from modules
Diffstat (limited to 'metadot')
-rwxr-xr-x | metadot | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -80,7 +80,9 @@ elif [ "$OPT" == "ls" ]; then elif [ "$OPT" == "version" ]; then ( cd $DOT && git log -n 1 ) elif [ "$OPT" == "update" ]; then - ( cd $DOT && git pull origin master && git submodule update --init ) + if [ -d "$DOT/.git" ]; then + ( cd $DOT && git pull origin master && git submodule update --init ) + fi elif [ "$OPT" == "backup" ]; then shift metadot_backup $1 |