Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/scripts/distribution/payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ export async function distributionPayload(
identity: DistributionRelease,
): Promise<readonly DistributionPayloadFile[]> {
const release = parseDistributionRelease(identity)
for (const directory of [source, join(source, 'packaging'), join(source, 'packaging/linux')])
for (const directory of [source, join(source, 'packaging'), join(source, 'packaging/linux')]) {
// oxlint-disable-next-line no-await-in-loop -- Verify each parent before checking its child.
if (!(await lstat(directory)).isDirectory())
throw new Error('Invalid distribution source directory')
}
const [unit, volume, cli, configuration, license] = await Promise.all([
sourceText(source, 'packaging/linux/rentnerproxy.container.in'),
sourceText(source, 'packaging/linux/rentnerproxy.volume'),
Expand Down
Loading