FIX: wrap adb command in sh -c "..."
This enables the stdout redirection to work on non-Windows platforms
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user