mirror of https://github.com/aminya/setup-cpp
fix: fix setupBin with dnf
This commit is contained in:
parent
f42bca4b35
commit
5ca7197035
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -8,6 +8,8 @@ import { isGitHubCI } from "../env/isCI"
|
|||
import { setupAptPack } from "./setupAptPack"
|
||||
import { setupPacmanPack } from "./setupPacmanPack"
|
||||
import { isArch } from "../env/isArch"
|
||||
import { hasDnf } from "../env/hasDnf"
|
||||
import { setupDnfPack } from "./setupDnfPack"
|
||||
|
||||
/** A type that describes a package */
|
||||
export type PackageInfo = {
|
||||
|
@ -94,6 +96,10 @@ export async function setupBin(
|
|||
setupPacmanPack("unzip")
|
||||
setupPacmanPack("tar")
|
||||
setupPacmanPack("xz")
|
||||
} else if (hasDnf()) {
|
||||
setupDnfPack("unzip")
|
||||
setupDnfPack("tar")
|
||||
setupDnfPack("xz")
|
||||
} else {
|
||||
setupAptPack("unzip")
|
||||
setupAptPack("tar")
|
||||
|
|
Loading…
Reference in New Issue