We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e101104 commit f5e06c4Copy full SHA for f5e06c4
func/shared_func.sh
@@ -1020,6 +1020,11 @@ v_json_list() {
1020
for field in $fields; do
1021
eval value=$field
1022
1023
+ # Checking if value exists
1024
+ if [ ! -z "$value" ]; then
1025
+ tpt=yes
1026
+ fi
1027
+
1028
# Checking parrent key
1029
if [ "$j" -eq 1 ]; then
1030
echo -e "\t\"$value\": {"
@@ -1037,7 +1042,7 @@ v_json_list() {
1037
1042
done < $conf
1038
1043
1039
1044
# If there was any output
1040
- if [ -n "$value" ]; then
1045
+ if [ -n "$tpt" ]; then
1041
1046
echo -e "\t}"
1047
fi
1048
0 commit comments