Skip to content

Commit 4e84885

Browse files
committed
fix: update apt only if the number of repositories is not 0
1 parent e5c77ec commit 4e84885

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/setup_cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/utils/setup/setupAptPack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function setupAptPack(
3434
didInit = true
3535
}
3636

37-
if (Array.isArray(repositories)) {
37+
if (Array.isArray(repositories) && repositories.length !== 0) {
3838
for (const repo of repositories) {
3939
// eslint-disable-next-line no-await-in-loop
4040
execSudo("add-apt-repository", ["--update", "-y", repo])

0 commit comments

Comments
 (0)