diff options
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 |