diff --git a/plugin/bin/x-pack/certgen.bat b/plugin/bin/x-pack/certgen.bat index 9b942377286..e4ee1adb949 100644 --- a/plugin/bin/x-pack/certgen.bat +++ b/plugin/bin/x-pack/certgen.bat @@ -5,6 +5,7 @@ rem or more contributor license agreements. Licensed under the Elastic License; rem you may not use this file except in compliance with the Elastic License. setlocal enabledelayedexpansion +setlocal enableextensions call "%~dp0..\elasticsearch-env.bat" || exit /b 1 @@ -19,3 +20,4 @@ call "%~dp0x-pack-env.bat" || exit /b 1 %* endlocal +endlocal diff --git a/plugin/bin/x-pack/croneval.bat b/plugin/bin/x-pack/croneval.bat index 110837d2f9d..a4fa9b11335 100644 --- a/plugin/bin/x-pack/croneval.bat +++ b/plugin/bin/x-pack/croneval.bat @@ -5,6 +5,7 @@ rem or more contributor license agreements. Licensed under the Elastic License; rem you may not use this file except in compliance with the Elastic License. setlocal enabledelayedexpansion +setlocal enableextensions call "%~dp0..\elasticsearch-env.bat" || exit /b 1 @@ -19,3 +20,4 @@ call "%~dp0x-pack-env.bat" || exit /b 1 %* endlocal +endlocal diff --git a/plugin/bin/x-pack/extension.bat b/plugin/bin/x-pack/extension.bat index 0b40910d2a5..663d480bbe3 100644 --- a/plugin/bin/x-pack/extension.bat +++ b/plugin/bin/x-pack/extension.bat @@ -5,6 +5,7 @@ rem or more contributor license agreements. Licensed under the Elastic License; rem you may not use this file except in compliance with the Elastic License. setlocal enabledelayedexpansion +setlocal enableextensions call "%~dp0..\elasticsearch-env.bat" || exit /b 1 @@ -19,3 +20,4 @@ call "%~dp0x-pack-env.bat" || exit /b 1 %* endlocal +endlocal diff --git a/plugin/bin/x-pack/migrate.bat b/plugin/bin/x-pack/migrate.bat index ee4d9f94e7a..fc39dad84f0 100644 --- a/plugin/bin/x-pack/migrate.bat +++ b/plugin/bin/x-pack/migrate.bat @@ -5,6 +5,7 @@ rem or more contributor license agreements. Licensed under the Elastic License; rem you may not use this file except in compliance with the Elastic License. setlocal enabledelayedexpansion +setlocal enableextensions call "%~dp0..\elasticsearch-env.bat" || exit /b 1 @@ -19,3 +20,4 @@ call "%~dp0x-pack-env.bat" || exit /b 1 %* endlocal +endlocal diff --git a/plugin/bin/x-pack/setup-passwords.bat b/plugin/bin/x-pack/setup-passwords.bat index 9b94dcbd24a..78245b32db9 100644 --- a/plugin/bin/x-pack/setup-passwords.bat +++ b/plugin/bin/x-pack/setup-passwords.bat @@ -5,6 +5,7 @@ rem or more contributor license agreements. Licensed under the Elastic License; rem you may not use this file except in compliance with the Elastic License. setlocal enabledelayedexpansion +setlocal enableextensions call "%~dp0..\elasticsearch-env.bat" || exit /b 1 @@ -19,3 +20,4 @@ call "%~dp0x-pack-env.bat" || exit /b 1 %* endlocal +endlocal diff --git a/plugin/bin/x-pack/syskeygen.bat b/plugin/bin/x-pack/syskeygen.bat index ad486fd1212..95b225ccd37 100644 --- a/plugin/bin/x-pack/syskeygen.bat +++ b/plugin/bin/x-pack/syskeygen.bat @@ -5,6 +5,7 @@ rem or more contributor license agreements. Licensed under the Elastic License; rem you may not use this file except in compliance with the Elastic License. setlocal enabledelayedexpansion +setlocal enableextensions call "%~dp0..\elasticsearch-env.bat" || exit /b 1 @@ -19,3 +20,4 @@ call "%~dp0x-pack-env.bat" || exit /b 1 %* endlocal +endlocal diff --git a/plugin/bin/x-pack/users.bat b/plugin/bin/x-pack/users.bat index 7001fb28003..62f0efff877 100644 --- a/plugin/bin/x-pack/users.bat +++ b/plugin/bin/x-pack/users.bat @@ -5,6 +5,7 @@ rem or more contributor license agreements. Licensed under the Elastic License; rem you may not use this file except in compliance with the Elastic License. setlocal enabledelayedexpansion +setlocal enableextensions call "%~dp0..\elasticsearch-env.bat" || exit /b 1 @@ -19,3 +20,4 @@ call "%~dp0x-pack-env.bat" || exit /b 1 %* endlocal +endlocal