Remove node fallback from kibana-keystore (#15066)

This commit is contained in:
Jonathan Budzenski 2017-11-27 10:11:38 -06:00 committed by GitHub
parent 8a79f25b83
commit ee4828b726
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 12 deletions

View file

@ -15,7 +15,7 @@ done
DIR="$(dirname "${SCRIPT}")/.."
NODE="${DIR}/node/bin/node"
test -x "$NODE" || NODE=$(which node)
test -x "$NODE"
if [ ! -x "$NODE" ]; then
echo "unable to find usable node.js executable."
exit 1

View file

@ -7,18 +7,9 @@ for %%I in ("%SCRIPT_DIR%..") do set DIR=%%~dpfI
set NODE=%DIR%\node\node.exe
WHERE /Q node
IF %ERRORLEVEL% EQU 0 (
for /f "delims=" %%i in ('WHERE node') do set SYS_NODE=%%i
)
If Not Exist "%NODE%" (
IF Exist "%SYS_NODE%" (
set "NODE=%SYS_NODE%"
) else (
Echo unable to find usable node.js executable.
Exit /B 1
)
Echo unable to find usable node.js executable.
Exit /B 1
)
TITLE Kibana Keystore

View file

@ -0,0 +1,2 @@
require('../src/babel-register');
require('../src/cli_keystore');