Fix condition in page creator script.

This commit is contained in:
Cotes Chung 2020-09-01 21:37:08 +08:00
parent c473771af4
commit d78f034f5d

View file

@ -30,7 +30,7 @@ read_categories() {
if [[ -n $_categories ]]; then if [[ -n $_categories ]]; then
echo "$_categories" | sed "s/categories *: *//;s/\[//;s/\].*//;s/, */,/g;s/\"//g;s/'//g" echo "$_categories" | sed "s/categories *: *//;s/\[//;s/\].*//;s/, */,/g;s/\"//g;s/'//g"
elif [[ -n "_category" ]]; then elif [[ -n $_category ]]; then
echo "$_category" | sed "s/category *: *//;s/\[//;s/\].*//;s/, */,/g;s/\"//g;s/'//g" echo "$_category" | sed "s/category *: *//;s/\[//;s/\].*//;s/, */,/g;s/\"//g;s/'//g"
fi fi
} }