FIX: wrap adb command in sh -c "..."

This enables the stdout redirection to work on non-Windows platforms
This commit is contained in:
Alan
2021-03-17 22:29:58 +01:00
committed by Joshua Granick
parent 76d953e909
commit 5c94adecd3

View File

@@ -305,7 +305,7 @@ class AndroidHelper
{
var tempFile = System.getTemporaryFile();
System.runCommand(adbPath, adbName, ["devices", ">", tempFile], true, true);
System.runCommand('/bin', 'sh', ["-c", '${adbPath}${adbName} devices > ${tempFile}'], true, true);
if (FileSystem.exists(tempFile))
{