Skip to content

Commit

Permalink
[dart_task] Set executable permission to dart-sdk's bin files
Browse files Browse the repository at this point in the history
  • Loading branch information
maniagoon committed Nov 8, 2016
1 parent 2347acf commit 623e27e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions beaver_dart_task/lib/src/install_sdk_task.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:async';
import 'dart:io' show Platform;

import 'package:beaver_task/beaver_task.dart';
import 'package:command_wrapper/command_wrapper.dart';

@TaskClass('install_dart_sdk')
class InstallDartSdkTask extends Task {
Expand Down Expand Up @@ -31,5 +32,10 @@ class InstallDartSdkTask extends Task {
new DownloadTask(sdk, '.'),
new UnzipTask('dartsdk-$platform-x64-release.zip', '.')
]).execute(context);

// FIXME: bin files should be executable.
// Refer: https://github.com/dart-lang/sdk/issues/15078
final cmd = new CommandWrapper('bash');
await cmd.run(['-c', 'chmod +x dart-sdk/bin/*']);
}
}

0 comments on commit 623e27e

Please sign in to comment.