Bug fix for json export with double quotes

This commit is contained in:
Clemens Schwaighofer
2023-12-22 13:39:18 +09:00
parent 8fb833d3c4
commit 89252af50b

View File

@@ -85,9 +85,9 @@ if [ "${OUTPUT_TARGET}" = "text" ]; then
echo "Max age no login : ${max_age_create} days"; echo "Max age no login : ${max_age_create} days";
elif [ "${OUTPUT_TARGET}" = "json" ]; then elif [ "${OUTPUT_TARGET}" = "json" ]; then
echo '"Info": {' echo '"Info": {'
echo '"AccountId": "'${account_id}'",'; echo '"AccountId": '${account_id}',';
echo '"Region": "'${region}'",'; echo '"Region": '${region}',';
echo '"InstanceId": "'${instance_id}'",'; echo '"InstanceId": '${instance_id}',';
echo '"Hostname": "'$(hostname)'",'; echo '"Hostname": "'$(hostname)'",';
echo '"Date": "'$(date +"%F %T")'",'; echo '"Date": "'$(date +"%F %T")'",';
echo '"MaxAgeLogin": '${max_age_login}','; echo '"MaxAgeLogin": '${max_age_login}',';