From a11c5f6a4367836aa78765f51d189e62570ea204 Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Sun, 29 Aug 2021 19:56:41 +0930 Subject: [PATCH] minor changes --- install-config | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install-config b/install-config index c7069d4..4e59c9f 100755 --- a/install-config +++ b/install-config @@ -31,12 +31,10 @@ function config { /usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ } -if [ -d $HOME/.cfg ]; then - sudo rm -rf $HOME/.cfg +if [ ! -d $HOME/.cfg ]; then + git clone --bare https://gitlab.inkletblot.com/inkletblot/config.git $HOME/.cfg fi -git clone --bare https://gitlab.inkletblot.com/inkletblot/config.git $HOME/.cfg - echo " The script will now attempt to install the configs, if configs have been installed using the method found here: https://www.atlassian.com/git/tutorials/dotfiles, there will be issues.