aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-10-15 20:31:45 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-10-15 20:31:45 -0400
commit1f4a494606e81ed8ce6173e1f86aeb1ffe0285f8 (patch)
tree3bd9bf0f048163cbdd5d03c6f0b2fee4d9e764fb
parent709accc8e4f6dc3c21fc9b55e9fcc31559c68472 (diff)
downloadvim-cfg-1f4a494606e81ed8ce6173e1f86aeb1ffe0285f8.tar.gz
vim-cfg-1f4a494606e81ed8ce6173e1f86aeb1ffe0285f8.tar.xz
Fix up the setup script
-rwxr-xr-xsetup.sh16
1 files 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