Skip to content

Commit

Permalink
fix: gpg errors
Browse files Browse the repository at this point in the history
Signed-off-by: Ar Rakin <rakinar2@onesoftnet.eu.org>
  • Loading branch information
virtual-designer committed Aug 28, 2024
1 parent 92b02eb commit ec17553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33121,8 +33121,8 @@ class GitClient {
const { stdout } = yield (0, exec_1.getExecOutput)("gpg", ["--import"], {
input: Buffer.from(key, "utf-8"),
});
console.log(stdout.split(/\n+/));
for (const data of stdout.split(/\n+/)) {
console.log(stdout.split(/\r?\n/g));
for (const data of stdout.split(/\r?\n/g)) {
const match = data.match(/^gpg: key ([0-9A-F]+):/);
console.log(match === null ? null : [...match]);
if (match) {
Expand Down
4 changes: 2 additions & 2 deletions src/GitClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ class GitClient implements AsyncDisposable {
input: Buffer.from(key, "utf-8"),
});

console.log(stdout.split(/\n+/));
console.log(stdout.split(/\r?\n/g));

for (const data of stdout.split(/\n+/)) {
for (const data of stdout.split(/\r?\n/g)) {
const match = data.match(/^gpg: key ([0-9A-F]+):/);

console.log(match === null ? null : [...match]);
Expand Down

0 comments on commit ec17553

Please sign in to comment.