Parcourir la source

Issue with v-list-sys-themes

Issues with a invallid json when $themes_custom was present
Jaap Marcus il y a 5 ans
Parent
commit
1fd1e42695
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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
         if [ "$i" -lt "$object1" ]; then
             echo -e  "\t\"$theme\","
             echo -e  "\t\"$theme\","
         else
         else
-            echo -e  "\t\"$theme\""
+            if [ $object2 -gt 0 ]; then
+                echo -e  "\t\"$theme\","
+            else
+                echo -e  "\t\"$theme\""            
+            fi
         fi
         fi
         (( ++i))
         (( ++i))
     done
     done