File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff 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 }
@@ -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 {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments