File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ func (this *HooksExecutor) initHooks() error {
47
47
return nil
48
48
}
49
49
50
- func (this * HooksExecutor ) applyEnvironmentVairables (extraVariables ... string ) []string {
50
+ func (this * HooksExecutor ) applyEnvironmentVariables (extraVariables ... string ) []string {
51
51
env := os .Environ ()
52
52
env = append (env , fmt .Sprintf ("GH_OST_DATABASE_NAME=%s" , this .migrationContext .DatabaseName ))
53
53
env = append (env , fmt .Sprintf ("GH_OST_TABLE_NAME=%s" , this .migrationContext .OriginalTableName ))
@@ -75,7 +75,7 @@ func (this *HooksExecutor) applyEnvironmentVairables(extraVariables ...string) [
75
75
// combined output & error are printed to gh-ost's standard error.
76
76
func (this * HooksExecutor ) executeHook (hook string , extraVariables ... string ) error {
77
77
cmd := exec .Command (hook )
78
- cmd .Env = this .applyEnvironmentVairables (extraVariables ... )
78
+ cmd .Env = this .applyEnvironmentVariables (extraVariables ... )
79
79
80
80
combinedOutput , err := cmd .CombinedOutput ()
81
81
fmt .Fprintln (os .Stderr , string (combinedOutput ))
You can’t perform that action at this time.
0 commit comments