Skip to content

Commit 31005ac

Browse files
author
Shlomi Noach
authored
Merge pull request #405 from jacobbednarz/fix-variables-spelling
thank you!
2 parents 340a93c + 36bcc03 commit 31005ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/logic/hooks.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (this *HooksExecutor) initHooks() error {
4747
return nil
4848
}
4949

50-
func (this *HooksExecutor) applyEnvironmentVairables(extraVariables ...string) []string {
50+
func (this *HooksExecutor) applyEnvironmentVariables(extraVariables ...string) []string {
5151
env := os.Environ()
5252
env = append(env, fmt.Sprintf("GH_OST_DATABASE_NAME=%s", this.migrationContext.DatabaseName))
5353
env = append(env, fmt.Sprintf("GH_OST_TABLE_NAME=%s", this.migrationContext.OriginalTableName))
@@ -75,7 +75,7 @@ func (this *HooksExecutor) applyEnvironmentVairables(extraVariables ...string) [
7575
// combined output & error are printed to gh-ost's standard error.
7676
func (this *HooksExecutor) executeHook(hook string, extraVariables ...string) error {
7777
cmd := exec.Command(hook)
78-
cmd.Env = this.applyEnvironmentVairables(extraVariables...)
78+
cmd.Env = this.applyEnvironmentVariables(extraVariables...)
7979

8080
combinedOutput, err := cmd.CombinedOutput()
8181
fmt.Fprintln(os.Stderr, string(combinedOutput))

0 commit comments

Comments
 (0)