fix: skip installing nala if it fails

This commit is contained in:
Amin Yahyaabadi 2022-07-27 16:14:56 -07:00
parent 9f78cc758b
commit 377be6c0a6
5 changed files with 10 additions and 5 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/setup_cpp.mjs vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -156,7 +156,12 @@ export async function main(args: string[]): Promise<number> {
}
if (isUbuntu()) {
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