Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabobko committed Oct 13, 2024
1 parent e71cc7e commit 19a2df8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/AppBundle/config/parseExecEnvVariables.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private func parseEnvVariables(_ raw: TOMLValueConvertible, _ backtrace: TomlBac
var result: [String: String] = [:]
for (key, value) in table {
let backtrace = backtrace + .key(key)
if key == "PWD" { errors.append(.semantic(backtrace, "Chaning 'PWD' is not allowed")) }
if key == "PWD" { errors.append(.semantic(backtrace, "Changing 'PWD' is not allowed")) }
guard let rawStr = parseString(value, backtrace).getOrNil(appendErrorTo: &errors) else { continue }
var env = baseEnv
if let add: String = fullEnv[key] {
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppBundleTests/config/ParseEnvVariablesTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ final class ParseEnvVariablesTest: XCTestCase {
PWD = ''
"""
)
assertEquals(errors.descriptions, ["exec.env-vars.PWD: Chaning 'PWD' is not allowed"])
assertEquals(errors.descriptions, ["exec.env-vars.PWD: Changing 'PWD' is not allowed"])
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Common/cmdArgs/impl/SummonWorkspaceCmdArgs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public struct SummonWorkspaceCmdArgs: CmdArgs {
public static let parser: CmdParser<Self> = cmdParser(
kind: .summonWorkspace,
allowInConfig: true,
help: workspace_help_generated,
help: summon_workspace_help_generated,
options: [
"--fail-if-noop": trueBoolFlag(\.failIfNoop),
],
Expand Down

0 comments on commit 19a2df8

Please sign in to comment.