From 833c6c5daaa8f13fd04dbcb1d1fbb2aa7c5cda8b Mon Sep 17 00:00:00 2001 From: Kylie McClain Date: Mon, 16 Feb 2015 23:19:02 -0500 Subject: [PATCH] make-colors-themes: check for existance of zuki-themes's git folder --- make-colors-themes | 7 +++---- 1 file 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"