Skip to content

Commit

Permalink
fix: check if ubuntu version is greater than or equal to 24
Browse files Browse the repository at this point in the history
  • Loading branch information
ueokande committed Jan 25, 2025
1 parent f14a724 commit 9989ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const installDependencies = async (
case "linuxmint":
return DEBIAN_BASED_DEPENDENT_PACKAGES;
case "ubuntu":
return versionId === "24"
return parseInt(versionId.split(".")[0], 10) >= 24

Check failure on line 97 in src/dependencies.ts

View workflow job for this annotation

GitHub Actions / build

Use Number.parseInt instead of the equivalent global.
? UBUNTU_24_DEPENDENT_PACKAGES
: DEBIAN_BASED_DEPENDENT_PACKAGES;
case "opensuse":
Expand Down

0 comments on commit 9989ad2

Please sign in to comment.