Kaynağa Gözat

Issue with v-list-sys-themes

Issues with a invallid json when $themes_custom was present
Jaap Marcus 5 yıl önce
ebeveyn
işleme
1fd1e42695
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5 1
      bin/v-list-sys-themes

+ 5 - 1
bin/v-list-sys-themes

@@ -27,7 +27,11 @@ json_list() {
         if [ "$i" -lt "$object1" ]; then
             echo -e  "\t\"$theme\","
         else
-            echo -e  "\t\"$theme\""
+            if [ $object2 -gt 0 ]; then
+                echo -e  "\t\"$theme\","
+            else
+                echo -e  "\t\"$theme\""            
+            fi
         fi
         (( ++i))
     done