mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-16 00:03:45 +00:00
Added work around for awk change in Ubuntu 20
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -572,7 +572,7 @@ function monitorinfo()
|
||||
child.stdin.write(' {');
|
||||
child.stdin.write(' display=$4;');
|
||||
child.stdin.write(' }');
|
||||
child.stdin.write(' match($0, /-auth .+/,arg);');
|
||||
child.stdin.write(' match($0, /-auth .+/);');
|
||||
child.stdin.write(' _auth = substr($0,RSTART+6,RLENGTH-6);');
|
||||
child.stdin.write(' if($1=="' + consoleuid + '" && _auth!="")');
|
||||
child.stdin.write(" {");
|
||||
|
||||
@@ -819,9 +819,9 @@ function UserSessions()
|
||||
child.stdin.write(' split(lines[i], tok, " ");');
|
||||
child.stdin.write(' if((tok[3])=="Xvfb")');
|
||||
child.stdin.write(' {');
|
||||
child.stdin.write(' match(lines[i], /:[0-9]+/,arg);');
|
||||
child.stdin.write(' match(lines[i], /:[0-9]+/);');
|
||||
child.stdin.write(' _display = substr(lines[i],RSTART,RLENGTH);');
|
||||
child.stdin.write(' match(lines[i], /-auth .+/,arg);');
|
||||
child.stdin.write(' match(lines[i], /-auth .+/);');
|
||||
child.stdin.write(' _auth = substr(lines[i],RSTART+6,RLENGTH-6);');
|
||||
child.stdin.write(' printf("%s{\\"uid\\": %s, \\"display\\": \\"%s\\", \\"xauth\\": \\"%s\\", \\"pid\\": %s}", del, tok[1], _display, _auth, tok[2]);');
|
||||
child.stdin.write(' del=",";');
|
||||
|
||||
Reference in New Issue
Block a user