Skip to content

Commit

Permalink
Powershell blaze.ps1 to improve ctrl+c not prompting user to terminat…
Browse files Browse the repository at this point in the history
…e a batch file
  • Loading branch information
jjlauer committed Nov 3, 2024
1 parent 5532a86 commit 70df841
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static public List<Path> installBlazeBinaries(Path installDir) throws MessageOnl
}

if (!Files.isWritable(installDir)) {
throw new MessageOnlyException("Install directory " + installDir + " is not writable (run this as an Administor or with sudo?)");
throw new MessageOnlyException("Install directory " + installDir + " is not writable (run this as an Administrator or with sudo?)");
}

List<Path> installedFiles = new ArrayList<>();
Expand All @@ -48,6 +48,11 @@ static public List<Path> installBlazeBinaries(Path installDir) throws MessageOnl
Path blazeBatFile = installDir.resolve("blaze.bat");
installResource("/bin/blaze.bat", blazeBatFile);
installedFiles.add(blazeBatFile);

// install blaze.ps1 (powershell)
Path blazePs1File = installDir.resolve("blaze.ps1");
installResource("/bin/blaze.ps1", blazePs1File);
installedFiles.add(blazePs1File);
}

// for ming32 compat also install the *nix version
Expand Down
Binary file added blaze-core/src/main/resources/bin/blaze.ps1
Binary file not shown.

0 comments on commit 70df841

Please sign in to comment.