From 1f4a494606e81ed8ce6173e1f86aeb1ffe0285f8 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 15 Oct 2019 20:31:45 -0400 Subject: Fix up the setup script --- setup.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/setup.sh b/setup.sh index 44cf17e..f7e069d 100755 --- a/setup.sh +++ b/setup.sh @@ -5,13 +5,14 @@ WD="$(pwd)" clone() { printf "Working dir: %s " $DIR - if [ -d "$DIR" ] ; then + if [ -d "$DIR/.git" ] ; then cd $DIR git pull --ff-only origin master - elif ! [ -d "$DIR" ] ; then + elif ! [ -d "$DIR/.git" ] ; then mkdir -p "$DIR" cd "$DIR" - git clone --depth=1 "$URL" . + git clone --depth=1 "$URL" . || + git clone "$URL" fi cd $WD printf "" @@ -44,13 +45,13 @@ DIR="pack/plugins/start/dracula" URL="https://github.com/dracula/vim.git" clone DIR="pack/plugins/start/l9" -URL="git:~/vim/vim-l9.git" +URL="https://git.riedstra.us/vim/vim-l9.git" clone DIR="pack/plugins/start/vim-autocomplpop" -URL="git:~/vim/vim-autocomplpop.git" +URL="https://git.riedstra.us/vim/vim-autocomplpop.git" clone DIR="pack/themes/start/mitch" -URL="git@rygel.us:~/vim/mitch.git" +URL="https://git.riedstra.us/vim/mitch.git" clone DIR="pack/themes/start/solarized" URL="https://github.com/altercation/vim-colors-solarized" @@ -64,3 +65,6 @@ clone DIR="pack/themes/start/gruvbox" URL="https://github.com/morhetz/gruvbox" clone +DIR="pack/themes/start/base16-black-metal" +URL="https://github.com/metalelf0/base16-black-metal-scheme.git" +clone -- cgit v1.2.3