We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65e33be commit fcdf5a5Copy full SHA for fcdf5a5
src/packages/backend/sandbox/install.ts
@@ -88,6 +88,7 @@ const SPEC = {
88
pathInArchive: "rustic",
89
},
90
nsjail: {
91
+ optional: true,
92
nonFatal: true,
93
platforms: ["linux"],
94
VERSION: NSJAIL_VERSION,
@@ -126,7 +127,11 @@ async function alreadyInstalled(app: App) {
126
127
export async function install(app?: App) {
128
if (app == null) {
129
// @ts-ignore
- await Promise.all(Object.keys(SPEC).map(install));
130
+ await Promise.all(
131
+ Object.keys(SPEC)
132
+ .filter((x) => !SPEC[x].optional)
133
+ .map(install as any),
134
+ );
135
return;
136
}
137
0 commit comments