mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -07:00
Merge branch 'master' of github.com:serghey-rodin/vesta
This commit is contained in:
commit
c5f4fbfb82
1 changed files with 6 additions and 1 deletions
|
@ -1020,6 +1020,11 @@ v_json_list() {
|
||||||
for field in $fields; do
|
for field in $fields; do
|
||||||
eval value=$field
|
eval value=$field
|
||||||
|
|
||||||
|
# Checking if value exists
|
||||||
|
if [ ! -z "$value" ]; then
|
||||||
|
tpt=yes
|
||||||
|
fi
|
||||||
|
|
||||||
# Checking parrent key
|
# Checking parrent key
|
||||||
if [ "$j" -eq 1 ]; then
|
if [ "$j" -eq 1 ]; then
|
||||||
echo -e "\t\"$value\": {"
|
echo -e "\t\"$value\": {"
|
||||||
|
@ -1037,7 +1042,7 @@ v_json_list() {
|
||||||
done < $conf
|
done < $conf
|
||||||
|
|
||||||
# If there was any output
|
# If there was any output
|
||||||
if [ -n "$value" ]; then
|
if [ -n "$tpt" ]; then
|
||||||
echo -e "\t}"
|
echo -e "\t}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue