mirror of https://github.com/aminya/setup-cpp
fix: skip installing nala if it fails
This commit is contained in:
parent
9f78cc758b
commit
377be6c0a6
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
|
@ -156,7 +156,12 @@ export async function main(args: string[]): Promise<number> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isUbuntu()) {
|
if (isUbuntu()) {
|
||||||
setupNala(getVersion("nala", undefined, osVersion), "", arch)
|
try {
|
||||||
|
setupNala(getVersion("nala", undefined, osVersion), "", arch)
|
||||||
|
} catch (err) {
|
||||||
|
warning((err as Error).toString())
|
||||||
|
// continue with apt-get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// loop over the tools and run their setup function
|
// loop over the tools and run their setup function
|
||||||
|
|
Loading…
Reference in New Issue