mirror of https://github.com/aminya/setup-cpp
fix: use apt-cache show instead of apt-get show
This commit is contained in:
parent
11b44434f5
commit
5e5a8d08d2
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
|
@ -68,7 +68,7 @@ async function getAptArg(name: string, version: string | undefined) {
|
|||
return `${name}-${version}`
|
||||
} else {
|
||||
// check if apt-get show can find the version
|
||||
const { stdout: showStdout } = await execa("apt-get", ["show", `${name}=${version}`])
|
||||
const { stdout: showStdout } = await execa("apt-cache", ["show", `${name}=${version}`])
|
||||
if (showStdout.trim() === "") {
|
||||
return `${name}=${version}`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue