File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
7676func (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 ))
You can’t perform that action at this time.
0 commit comments