aboutsummaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-11-07 19:42:43 -0500
committerMitch Riedstra <mitch@riedstra.us>2019-11-07 19:42:43 -0500
commitf99ff078df06ef26f9a92e6a01d87f1c79ae342f (patch)
treeae6e1ffe942e1cf5141bf45a9acd44892c20c969 /setup.sh
parent92df1df37c81b0f59f818d7aa7216e96ef9e6783 (diff)
downloadvim-cfg-f99ff078df06ef26f9a92e6a01d87f1c79ae342f.tar.gz
vim-cfg-f99ff078df06ef26f9a92e6a01d87f1c79ae342f.tar.xz
Add repositories as submodules
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh14
1 files changed, 2 insertions, 12 deletions
diff --git a/setup.sh b/setup.sh
index 2cced41..4d554a0 100755
--- a/setup.sh
+++ b/setup.sh
@@ -3,18 +3,8 @@
WD="$(pwd)"
clone() {
- printf "Working dir: %s
-" $DIR
- if [ -d "$DIR/.git" ] ; then
- cd $DIR
- git pull --ff-only origin master
- elif ! [ -d "$DIR/.git" ] ; then
- mkdir -p "$DIR"
- cd "$DIR"
- git clone --depth=1 "$URL" . ||
- git clone "$URL" .
- fi
- cd $WD
+ printf "Working dir: %s\n" "$DIR"
+ git submodule add "$URL" "$DIR"
printf ""
}
DIR="pack/plugins/start/vim-go"