Skip to content

Commit 1fd1e42

Browse files
jaapmarcusvestacp-user
authored andcommitted
Issue with v-list-sys-themes
Issues with a invallid json when $themes_custom was present
1 parent a418ad8 commit 1fd1e42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/v-list-sys-themes

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ json_list() {
2727
if [ "$i" -lt "$object1" ]; then
2828
echo -e "\t\"$theme\","
2929
else
30-
echo -e "\t\"$theme\""
30+
if [ $object2 -gt 0 ]; then
31+
echo -e "\t\"$theme\","
32+
else
33+
echo -e "\t\"$theme\""
34+
fi
3135
fi
3236
(( ++i))
3337
done

0 commit comments

Comments
 (0)