We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8155d2c + 2265083 commit 44a4491Copy full SHA for 44a4491
func/ip_func.sh
@@ -475,6 +475,12 @@ ip_user_json_list() {
475
# Print data
476
for field in $fields; do
477
eval value=$field
478
+
479
+ # There is outpup
480
+ if [ ! -z "$value" ]; then
481
+ tpt='yes'
482
+ fi
483
484
# Checking parrent key
485
if [ "$j" -eq 1 ]; then
486
echo -e "\t\"$value\": {"
@@ -492,7 +498,7 @@ ip_user_json_list() {
492
498
done
493
499
494
500
# If there was any output
495
- if [ -n "$value" ]; then
501
+ if [ -n "$tpt" ]; then
496
502
echo -e "\t}"
497
503
fi
504
0 commit comments