Skip to content

Commit 1dc04b6

Browse files
print contents of post-install script in output channel
1 parent 65105b2 commit 1dc04b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/toolchain/swiftly.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,11 @@ export class Swiftly {
803803
outputChannel.show(true);
804804
outputChannel.appendLine(`Executing post-install script for Swift ${version}...`);
805805
outputChannel.appendLine(`Script location: ${postInstallFilePath}`);
806+
outputChannel.appendLine("Script contents:");
807+
const scriptContents = await fs.readFile(postInstallFilePath, "utf-8");
808+
for (const line of scriptContents.split(/\r?\n/)) {
809+
outputChannel.appendLine(" " + line);
810+
}
806811
outputChannel.appendLine("");
807812

808813
await execFile("chmod", ["+x", postInstallFilePath]);

0 commit comments

Comments
 (0)