Skip to content

Commit c459ee3

Browse files
authored
Update Init.swift
1 parent 60a1de7 commit c459ee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Swiftly/Init.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ struct Init: SwiftlyCommand {
200200
"""
201201
} else if shell.hasSuffix("/nu") {
202202
env = """
203-
$env.SWIFTLY_HOME_DIR = "\(Swiftly.currentPlatform.swiftlyHomeDir.path)"
204-
$env.SWIFTLY_BIN_DIR = "\(Swiftly.currentPlatform.swiftlyBinDir.path)"
203+
$env.SWIFTLY_HOME_DIR = "\(Swiftly.currentPlatform.swiftlyHomeDir(ctx).path)"
204+
$env.SWIFTLY_BIN_DIR = "\(Swiftly.currentPlatform.swiftlyBinDir(ctx).path)"
205205
if "$SWIFTLY_BIN_DIR" not-in $env.PATH {
206206
$env.PATH = ($env.PATH | split row (char esep) | prepend $env.SWIFTLY_BIN_DIR)
207207
}

0 commit comments

Comments
 (0)