Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dalance committed Apr 27, 2024
1 parent 9bd3fe1 commit aac7a73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function getImage() {
throw new Error(e);
}

console.log(os);
if (os.os === 'linux') {
if (os.dist === 'Ubuntu') {
image = `ubuntu-${ os.release }`;
Expand All @@ -66,6 +67,7 @@ function getImage() {

function getDownloadObject(version) {
const image = getImage();
console.log(image);
const filename = `verilator-${ image }`;
const binPath = 'bin';
const versionPath = version === 'latest' ? 'latest/download' : `download/v${ version }`;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function getImage() {
throw new Error(e);
}

console.log(os);
if (os.os === 'linux') {
if (os.dist === 'Ubuntu') {
image = `ubuntu-${ os.release }`;
Expand All @@ -20,6 +21,7 @@ function getImage() {

function getDownloadObject(version) {
const image = getImage();
console.log(image);
const filename = `verilator-${ image }`;
const binPath = 'bin';
const versionPath = version === 'latest' ? 'latest/download' : `download/v${ version }`;
Expand Down

0 comments on commit aac7a73

Please sign in to comment.