Skip to content

Commit 6d68ef9

Browse files
committed
put the filename in quotes to accept file names with spaces
1 parent fe316dc commit 6d68ef9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/master.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
run: |
1313
mkdir files
1414
copy C:\Windows\System32\wmi.dll files
15+
copy files\wmi.dll "files\wmi with three spaces.dll"
1516
cd files
1617
mkdir subdirectory
1718
copy C:\Windows\System32\wmi.dll subdirectory

dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async function signWithSigntool(signtool: string, fileName: string) {
9696
if (!vitalParameterIncluded){
9797
console.warn("You need to include a NAME or a SHA1 Hash for the certificate to sign with.")
9898
}
99-
command = command + ` ${fileName}`;
99+
command = command + ` "${fileName}"`;
100100
console.log("Signing command: " + command);
101101
try {
102102
const { stdout } = await asyncExec(command);

0 commit comments

Comments
 (0)