Index: sdk/lib/_internal/pub/lib/src/global_packages.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/global_packages.dart b/sdk/lib/_internal/pub/lib/src/global_packages.dart |
index de1cf148564c29ead9dd0c5d0ba00126421a0a85..0f87dc0fa0fb226ddb2d0595d11616e0a166dc2c 100644 |
--- a/sdk/lib/_internal/pub/lib/src/global_packages.dart |
+++ b/sdk/lib/_internal/pub/lib/src/global_packages.dart |
@@ -624,7 +624,7 @@ $invocation "\$@" |
if (Platform.operatingSystem == "windows") { |
// See if the shell can find one of the binstubs. |
// "\q" means return exit code 0 if found or 1 if not. |
- var result = Process.runSync("where", [r"\q", installed.first]); |
+ var result = runProcessSync("where", [r"\q", installed.first]); |
if (result.exitCode == 0) return; |
var binDir = _binStubDir; |
@@ -641,7 +641,7 @@ $invocation "\$@" |
'A web search for "configure windows path" will show you how.'); |
} else { |
// See if the shell can find one of the binstubs. |
- var result = Process.runSync("which", [installed.first]); |
+ var result = runProcessSync("which", [installed.first]); |
if (result.exitCode == 0) return; |
var binDir = _binStubDir; |
@@ -656,7 +656,8 @@ $invocation "\$@" |
"You can fix that by adding this to your shell's config file " |
"(.bashrc, .bash_profile, etc.):\n" |
"\n" |
- "\n${log.bold('export PATH="\$PATH":"$binDir"')}\n"); |
+ " ${log.bold('export PATH="\$PATH":"$binDir"')}\n" |
+ "\n"); |
} |
} |
} |