Skip to content

Commit d6a4580

Browse files
committed
Try to get location
1 parent 5afa18a commit d6a4580

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/swiftly/swiftly.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ export async function installSwift(version: string) {
1818
"--assume-yes",
1919
);
2020

21-
debug(`SWIFTLY_HOME_DIR: ${process.env.SWIFTLY_HOME_DIR}`);
22-
debug(`SWIFTLY_BIN_DIR: ${process.env.SWIFTLY_BIN_DIR}`);
23-
2421
info(`Installing Swift ${version}`);
25-
await swiftly("install", "--use", version, "--assume-yes");
22+
await swiftly("install", version, "--assume-yes");
23+
const location = swiftly("use", version, "--print-location");
24+
debug(`Swiftly installed Swift to ${location}`);
2625
}

0 commit comments

Comments
 (0)