Skip to content

New binstubs for global activate using dart pub #3002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/src/global_packages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -756,17 +756,17 @@ if exist "$snapshot" (
if not errorlevel 253 (
goto error
)
pub global run ${package.name}:$script %*
dart pub global run ${package.name}:$script %*
) else (
pub global run ${package.name}:$script %*
dart pub global run ${package.name}:$script %*
)
goto eof
:error
exit /b %errorlevel%
:eof
''';
} else {
invocation = 'pub global run ${package.name}:$script %*';
invocation = 'dart pub global run ${package.name}:$script %*';
}
var batch = '''
@echo off
Expand All @@ -792,13 +792,13 @@ if [ -f $snapshot ]; then
if [ \$exit_code != 253 ]; then
exit \$exit_code
fi
pub global run ${package.name}:$script "\$@"
dart pub global run ${package.name}:$script "\$@"
else
pub global run ${package.name}:$script "\$@"
dart pub global run ${package.name}:$script "\$@"
fi
''';
} else {
invocation = 'pub global run ${package.name}:$script "\$@"';
invocation = 'dart pub global run ${package.name}:$script "\$@"';
}
var bash = '''
#!/usr/bin/env sh
Expand Down