Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mkisielewski-arista committed Dec 30, 2024
1 parent 82ad894 commit b8232e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions executor/dryrun_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func (ex *DryRunExecutor) Output(name string, arg ...string) (string, error) {
}

func (ex *DryRunExecutor) GenerateShellScript() string {
preambule := "#!/usr/bin/env sh\n"
return strings.Join(append([]string{preambule}, ex.shellScript...), "\n")
preamble := "#!/usr/bin/env sh\n"
return strings.Join(append([]string{preamble}, ex.shellScript...), "\n")
}

func (ex *DryRunExecutor) GenerateDescription() string {
Expand Down
2 changes: 1 addition & 1 deletion executor/os_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (ex *OsExecutor) Output(name string, arg ...string) (string, error) {
}

// Join strings in a way that preserves the shell token boundries. For instance
// the args ["cat", "a file"] when simpy joined with strings. Join would result
// the args ["cat", "a file"] when simply joined with strings.Join would result
// in a string "cat a file" which has a different meaning to the original. This
// function is a simple shell escaping join.
func shellEscape(args []string) string {
Expand Down

0 comments on commit b8232e7

Please sign in to comment.