Skip to content

Commit ad0c797

Browse files
committed
addressed another inexplicable issue with quotations not escaping. something is afoot
1 parent 6e98d42 commit ad0c797

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/server/linux_json_api.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,7 @@ ram_intensive_processes() {
431431
recent_account_logins() {
432432

433433
result=$(/usr/bin/lastlog -t 365 \
434-
| /usr/bin/awk 'NR>1 {\
435-
print "{ \
436-
'user': '" $1 "', \
437-
'ip': '" $3 "',"" \
438-
'date': '" $5" "$6" "$7" "$8" "$9 "'},"
439-
}'
434+
| /usr/bin/awk 'NR>1 { print "{ \"user\": \"" $1 "\", " "\"ip\": \"" $3 "\"," "\"date\": \"" $5" "$6" "$7" "$8" "$9 "\" }" }'
440435
)
441436
echo [ ${result%?} ] | _parseAndPrint
442437
}

0 commit comments

Comments
 (0)