diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-11-07 19:42:43 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-11-07 19:42:43 -0500 |
| commit | f99ff078df06ef26f9a92e6a01d87f1c79ae342f (patch) | |
| tree | ae6e1ffe942e1cf5141bf45a9acd44892c20c969 /setup.sh | |
| parent | 92df1df37c81b0f59f818d7aa7216e96ef9e6783 (diff) | |
| download | vim-cfg-f99ff078df06ef26f9a92e6a01d87f1c79ae342f.tar.gz vim-cfg-f99ff078df06ef26f9a92e6a01d87f1c79ae342f.tar.xz | |
Add repositories as submodules
Diffstat (limited to 'setup.sh')
| -rwxr-xr-x | setup.sh | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -3,18 +3,8 @@ WD="$(pwd)" clone() { - printf "[0mWorking dir: [1;34m%s[0;33m -" $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 "[0mWorking dir: [1;34m%s[0;33m\n" "$DIR" + git submodule add "$URL" "$DIR" printf "[0m" } DIR="pack/plugins/start/vim-go" |
