ci: add typo detection (#3327)

And fix them.
This commit is contained in:
Ammar Bandukwala
2022-08-01 09:29:52 -04:00
committed by GitHub
parent eb514357bb
commit 19fcf60864
25 changed files with 63 additions and 30 deletions

View File

@ -402,7 +402,7 @@ func (a *agent) createCommand(ctx context.Context, rawCommand string, env []stri
// These should override all variables we manually specify.
for envKey, value := range metadata.EnvironmentVariables {
// Expanding environment variables allows for customization
// of the $PATH, among other variables. Customers can prepand
// of the $PATH, among other variables. Customers can prepend
// or append to the $PATH, so allowing expand is required!
cmd.Env = append(cmd.Env, fmt.Sprintf("%s=%s", envKey, os.ExpandEnv(value)))
}