Skip to content

Commit

Permalink
Make linux puro bin executable
Browse files Browse the repository at this point in the history
  • Loading branch information
rehlma committed Jun 10, 2024
1 parent 072547d commit f1fe1f1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion puro_sidekick_plugin/lib/src/install_puro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,23 @@ int installPuroLinux(String downloadUrl, String downloadPath, dcli.Progress? pro
terminal: progress == null,
);

return downloadProcess.exitCode ?? -1;
if (downloadProcess.exitCode != 0) {
return downloadProcess.exitCode ?? -1;
}

final chmodProcess = dcli.startFromArgs(
'bash',
[
'-c',
'chmod +x puro',
],
workingDirectory: downloadPath,
nothrow: true,
progress: progress,
terminal: progress == null,
);

return chmodProcess.exitCode ?? -1;
}

int installPuroWindows(String downloadUrl, String downloadPath, dcli.Progress? progress) {
Expand Down

0 comments on commit f1fe1f1

Please sign in to comment.