Skip to content

Commit

Permalink
Set file permissions for all files in the flutter dist explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
buijs-dev committed May 11, 2024
1 parent 010e9eb commit 7face23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/cli/task_get_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ class GetFlutterSDK extends Task<Directory> {
throw const KlutterException("Failed to download Flutter SDK");
}

target.listSync(recursive: true).forEach((element) {
if(element is File) {
Process.runSync("chmod", runInShell: true, ["755", element.absolutePath]);
}
});

print("flutter download finished: ${target.absolutePath}");
}

Expand Down

0 comments on commit 7face23

Please sign in to comment.