[fuchsia] Fix paths to find and ls (#28280)

This commit is contained in:
Zachary Anderson
2019-02-22 08:38:02 -08:00
committed by GitHub
parent b7711d0f9b
commit ea4cffde60
2 changed files with 4 additions and 4 deletions

View File

@@ -526,14 +526,14 @@ class FuchsiaRemoteConnection {
/// attempting to acquire the ports.
Future<List<int>> getDeviceServicePorts() async {
final List<String> portPaths = await _sshCommandRunner
.run('/system/bin/find /hub -name vmservice-port');
.run('/bin/find /hub -name vmservice-port');
final List<int> ports = <int>[];
for (String path in portPaths) {
if (path == '') {
continue;
}
final List<String> lsOutput =
await _sshCommandRunner.run('/system/bin/ls $path');
await _sshCommandRunner.run('/bin/ls $path');
for (String line in lsOutput) {
if (line == '') {
continue;