diff options
author | Kylie McClain <somasissounds@gmail.com> | 2015-01-19 20:08:08 -0500 |
---|---|---|
committer | Kylie McClain <somasissounds@gmail.com> | 2015-01-19 20:08:08 -0500 |
commit | 8b0a4b507639d395771c8c5b2bd8351de459583d (patch) | |
tree | 2534ec6b71fc001080a478dea93e74eee06f4347 /make-colors-themes | |
parent | 8f4f13237d3ca128ad0db6dbac3dbf38ba8a138a (diff) |
use submodule commands to update zuki-themes tree
Diffstat (limited to 'make-colors-themes')
-rwxr-xr-x | make-colors-themes | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/make-colors-themes b/make-colors-themes index a957b6e..324e16b 100755 --- a/make-colors-themes +++ b/make-colors-themes @@ -150,13 +150,14 @@ generate_theme() { update() { if [[ ! -d "zuki-themes/.git" ]];then - git clone https://github.com/lassekongo83/zuki-themes.git + git submodule init zuki-themes/ + git submodule update -f zuki-themes/ fi - cd zuki-themes - echo "Resetting git tree of zuki-themes..." - git reset --hard HEAD + echo "Resetting zuki-themes tree..." + git submodule deinit -f zuki-themes/ + git submodule init zuki-themes/ echo "Getting latest revision of zuki-themes..." - git pull + git submodule update -f -- zuki-themes/ cd "$OLDPWD" printf '\n\n' } |