make-colors-themes: check for existance of zuki-themes's git folder

This commit is contained in:
Kylie McClain 2015-02-16 23:19:02 -05:00
parent 61ed4d0233
commit 833c6c5daa

View File

@ -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"