mirror of https://git.envs.net/envs/ops.git
sysinfo: add missing `echo`
This commit is contained in:
parent
5e671775b3
commit
a16fe331c2
|
@ -119,7 +119,7 @@ cat<<EOM > "$TMP_JSON"
|
|||
},
|
||||
"system": {
|
||||
"os": "$(lsb_release -sd)",
|
||||
"uptime": "$(UP=$(uptime -p) ; ${UP//up/})",
|
||||
"uptime": "$(UP=$(uptime -p) ; echo ${UP//up/})",
|
||||
"load": "$(LOAD=$(uptime | grep -ohe 'load average[s:][: ].*' | awk '{ print $3 $4 $5 }') ; echo ${LOAD//,/ })",
|
||||
"uname": "$(uname -a)",
|
||||
"board": "$(hostnamectl status | awk '/Chassis/ {print $2}')",
|
||||
|
|
Loading…
Reference in New Issue