Skip to content

Commit 78575e0

Browse files
committed
chore: fix error in script
1 parent 8fe9569 commit 78575e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/codecov-upload-flags.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const pkgsWithFlag = pkgFiles.flat().map((f) => {
5252
});
5353

5454
// Download codecov-cli if necessary
55+
const codecovPath = './codecov';
5556
const baseUrl = 'https://cli.codecov.io/latest/';
5657
const urlMap = {
5758
linux: `${baseUrl}linux/codecov`,
@@ -71,7 +72,7 @@ if (existsSync(codecovPath)) {
7172
} else {
7273
console.log(`Codecov binary missing. Downloading from ${url}`);
7374
execSync(`curl -O "${url}"`, execOpts);
74-
console.log(`Verifying codecov binary downloaded to "./codecov"`);
75+
console.log(`Verifying codecov binary downloaded to "${codecovPath}"`);
7576
execSync(`echo "$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)" | gpg --no-default-keyring --import`, execOpts);
7677
execSync(`curl -O "${url}.SHA256SUM"`, execOpts);
7778
execSync(`curl -O "${url}.SHA256SUM.sig"`, execOpts);

0 commit comments

Comments
 (0)