Skip to content

Commit 51e91c6

Browse files
committed
fix: rm extra single quota
1 parent b0a39dd commit 51e91c6

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

dist/index.js

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

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/runner.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,13 @@ export class Runner {
172172
username: os.userInfo().username,
173173
built_on: `${os.userInfo().username}@${os.hostname()}`,
174174
built_at: new Date().toLocaleString(),
175-
git_author: (await $`git show -s ${"--format='%an <%ae>'"}`).stdout,
176-
git_commit: (await $`git show -s ${"--format='%H'"}`).stdout,
175+
git_author: (
176+
await $`git show -s ${"--format='%an <%ae>'"}`
177+
).stdout.replaceAll("'", ''),
178+
git_commit: (await $`git show -s ${"--format='%H'"}`).stdout.replaceAll(
179+
"'",
180+
''
181+
),
177182
go_version: goVersion
178183
}
179184
}

0 commit comments

Comments
 (0)