aboutsummaryrefslogtreecommitdiff
path: root/metadot
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-27 14:31:06 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-27 14:31:06 -0200
commit03fdeb451b3bf1c63e3f2a725bf9bdb8e137f0a7 (patch)
tree0d3b7a75a2b5803b7e9df9dab5431e67c4477c5b /metadot
parent05ea84ced3cefd57c5858c8043f349ce45a22fd5 (diff)
downloaddotfiles-03fdeb451b3bf1c63e3f2a725bf9bdb8e137f0a7.tar.gz
dotfiles-03fdeb451b3bf1c63e3f2a725bf9bdb8e137f0a7.tar.bz2
Preparing to split metadot code from modules
Diffstat (limited to 'metadot')
-rwxr-xr-xmetadot4
1 files changed, 3 insertions, 1 deletions
diff --git a/metadot b/metadot
index 3ba6c28..47af6ac 100755
--- a/metadot
+++ b/metadot
@@ -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