diff options
author | Kylie McClain <somasissounds@gmail.com> | 2015-02-16 23:19:02 -0500 |
---|---|---|
committer | Kylie McClain <somasissounds@gmail.com> | 2015-02-16 23:20:16 -0500 |
commit | 833c6c5daaa8f13fd04dbcb1d1fbb2aa7c5cda8b (patch) | |
tree | ca119bf097e8ebaa954de0bb2147c9edc1b677bc | |
parent | 61ed4d02331932cc084b458ec7ffc48c1ddaa084 (diff) |
make-colors-themes: check for existance of zuki-themes's git folder
-rwxr-xr-x | make-colors-themes | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/make-colors-themes b/make-colors-themes index 72f2be1..7e0cc8c 100755 --- a/make-colors-themes +++ b/make-colors-themes @@ -44,7 +44,7 @@ install_plank_theme() { } install_theme() { - [[ ! -d "zuki-themes" ]] && update + [[ ! -d "zuki-themes/.git" ]] && update for color in ${colors[@]};do if [[ -d "Shiki-$color" ]];then printf "Installing \"Shiki-$color\"" @@ -137,9 +137,8 @@ patch_theme() { } generate_theme() { - if [[ ! -d "zuki-themes/" ]];then - echo "zuki-themes does not exist. You need to run \`./make-color-themes update\`." - exit 1 + if [[ ! -d "zuki-themes/.git" ]];then + update fi color="$1" cp -r "zuki-themes/Zukitwo" "Shiki-$color" |