mirror of https://github.com/aminya/setup-cpp
fix: update apt only if the number of repositories is not 0
This commit is contained in:
parent
e5c77ec118
commit
4e84885253
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
|
@ -34,7 +34,7 @@ export function setupAptPack(
|
|||
didInit = true
|
||||
}
|
||||
|
||||
if (Array.isArray(repositories)) {
|
||||
if (Array.isArray(repositories) && repositories.length !== 0) {
|
||||
for (const repo of repositories) {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
execSudo("add-apt-repository", ["--update", "-y", repo])
|
||||
|
|
Loading…
Reference in New Issue