diff --git a/bootstrap.sh b/bootstrap.sh index 819db99..3f26580 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -3,14 +3,16 @@ # Copyright (c) 2017, deadc0de6 fold="dotfiles" +conf="config.yaml" # copy dotdrop entry point cat dotdrop/dotdrop.sh | sed 's#${cur}/dotdrop/dotdrop.py#${cur}/dotdrop/dotdrop/dotdrop.py#g' > dotdrop.sh chmod +x dotdrop.sh mkdir $fold -# init config file -cat << EOF > config.yaml +if [ ! -e ${conf} ]; then + # init config file + cat << EOF > ${conf} config: backup: true create: true @@ -18,3 +20,4 @@ config: dotfiles: profiles: EOF +fi