From 5e742ff6cdf19f6fdaf0e2119367864120ab8b7b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 12 Aug 2015 11:12:49 -0300 Subject: Inception: check for dotfiles --- inception | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'inception') diff --git a/inception b/inception index 07e8327..184b983 100755 --- a/inception +++ b/inception @@ -15,8 +15,10 @@ if [ -z "$1" ] || [ "$1" == "init" ]; then echo "Initializing submodules..." git submodule update --init - echo "Cloning default dotfiles..." - ./metadot/metadot clone default + if [ ! -e "$HOME/.dotfiles" ]; then + echo "Cloning default dotfiles..." + ./metadot/metadot clone default + fi echo "Checking latest tag..." cd $HOME/.dotfiles -- cgit v1.2.3