Skip to content

Commit c765ea6

Browse files
authored
Merge branch 'main' into foreground-process-fix
2 parents 9826fc2 + 7517530 commit c765ea6

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Sources/Swiftly/Init.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ internal struct Init: SwiftlyCommand {
7777
\(installMsg)
7878
""")
7979

80-
guard promptForConfirmation(defaultBehavior: true) else {
80+
guard SwiftlyCore.promptForConfirmation(defaultBehavior: true) else {
8181
throw SwiftlyError(message: "Swiftly installation has been cancelled")
8282
}
8383
}
@@ -93,7 +93,7 @@ internal struct Init: SwiftlyCommand {
9393
SwiftlyCore.print(" \(swiftlyBinDir.appendingPathComponent(executable).path)")
9494
}
9595

96-
guard promptForConfirmation(defaultBehavior: false) else {
96+
guard SwiftlyCore.promptForConfirmation(defaultBehavior: false) else {
9797
throw SwiftlyError(message: "Swiftly installation has been cancelled")
9898
}
9999
}
@@ -201,8 +201,12 @@ internal struct Init: SwiftlyCommand {
201201
try FileManager.default.createDirectory(at: confDir, withIntermediateDirectories: true)
202202
profileHome = confDir.appendingPathComponent("swiftly.fish", isDirectory: false)
203203
} else {
204-
let confDir = userHome.appendingPathComponent(".config/fish/conf.d", isDirectory: true)
205-
try FileManager.default.createDirectory(at: confDir, withIntermediateDirectories: true)
204+
let confDir = userHome.appendingPathComponent(
205+
".config/fish/conf.d", isDirectory: true
206+
)
207+
try FileManager.default.createDirectory(
208+
at: confDir, withIntermediateDirectories: true
209+
)
206210
profileHome = confDir.appendingPathComponent("swiftly.fish", isDirectory: false)
207211
}
208212
} else {

Sources/Swiftly/Install.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ struct Install: SwiftlyCommand {
266266
SwiftlyCore.print(" \(swiftlyBinDir.appendingPathComponent(executable).path)")
267267
}
268268

269-
guard promptForConfirmation(defaultBehavior: false) else {
269+
270+
guard SwiftlyCore.promptForConfirmation(defaultBehavior: false) else {
270271
throw SwiftlyError(message: "Toolchain installation has been cancelled")
271272
}
272273
}

0 commit comments

Comments
 (0)