We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a46d87 commit 7894095Copy full SHA for 7894095
Sources/swift-sh/OptionGroups/BuildAndRunOptions.swift
@@ -34,7 +34,11 @@ final class BuildAndRunOptions : ParsableArguments {
34
35
let scriptSource = try (
36
!scriptPathIsContent ?
37
- ScriptSource(copying: FilePath(scriptPathOrContent), fileManager: fm) :
+ (
38
+ forceCopySource ?
39
+ ScriptSource(copying: FilePath(scriptPathOrContent), fileManager: fm) :
40
+ ScriptSource(path: FilePath(scriptPathOrContent), fileManager: fm)
41
+ ) :
42
ScriptSource(content: scriptPathOrContent, fileManager: fm, logger: logger)
43
)
44
let scriptPath = try scriptSource.scriptPath?.0 ?! InternalError(message: "scriptPath is nil")
0 commit comments