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
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ read_categories() {
if [[ -n $_categories ]]; then
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"
fi
}