aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasissounds@gmail.com>2015-01-19 20:08:08 -0500
committerKylie McClain <somasissounds@gmail.com>2015-01-19 20:08:08 -0500
commit8b0a4b507639d395771c8c5b2bd8351de459583d (patch)
tree2534ec6b71fc001080a478dea93e74eee06f4347
parent8f4f13237d3ca128ad0db6dbac3dbf38ba8a138a (diff)
use submodule commands to update zuki-themes tree
-rwxr-xr-xmake-colors-themes11
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'
}