mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Remove node fallback from kibana-keystore (#15066)
This commit is contained in:
parent
8a79f25b83
commit
ee4828b726
3 changed files with 5 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
2
scripts/kibana-keystore.js
Normal file
2
scripts/kibana-keystore.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
require('../src/babel-register');
|
||||
require('../src/cli_keystore');
|
Loading…
Add table
Add a link
Reference in a new issue