aboutsummaryrefslogtreecommitdiff
path: root/metadot
diff options
context:
space:
mode:
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