Skip to content

Commit 1489fe5

Browse files
committed
quotation issue with common_applications func
1 parent 6b84c20 commit 1489fe5

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
@@ -36,12 +36,7 @@ bandwidth() {
3636
common_applications() {
3737
result=$(whereis php node mysql mongo vim python ruby java apache2 nginx openssl vsftpd make \
3838
| awk -F: '{if(length($2)==0) { installed="false"; } else { installed="true"; } \
39-
print \
40-
"{ \
41-
'binary': '"$1"', \
42-
'location': '"$2"', \
43-
'installed': "installed" \
44-
},"}')
39+
print "{ \"binary\": \"" $1 "\", \"location\": \"" $2 "\", \"installed\": \"installed\" },"}')
4540

4641
echo "[" ${result%?} "]" | _parseAndPrint
4742
}

0 commit comments

Comments
 (0)