Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: sdk/lib/_internal/pub/lib/src/command/global_run.dart

Issue 396773003: Don't allow running global executables outside of bin. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/executable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/command/global_run.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/global_run.dart b/sdk/lib/_internal/pub/lib/src/command/global_run.dart
index 707fdea4c1592f5dbe612908a9c4868d19361f7d..edc19b860492892c684ddf509c491f791bea5a66 100644
--- a/sdk/lib/_internal/pub/lib/src/command/global_run.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/global_run.dart
@@ -42,7 +42,8 @@ class GlobalRunCommand extends PubCommand {
var args = commandOptions.rest.skip(2);
return globals.find(package).then((entrypoint) {
- return runExecutable(this, entrypoint, package, executable, args);
+ return runExecutable(this, entrypoint, package, executable, args,
+ isGlobal: true);
}).then(flushThenExit);
}
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/executable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698