"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/bin/x-pack/setup-passwords.bat" (6 Jan 2022, 682 Bytes) of package /linux/www/elasticsearch-6.8.23.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 @echo off
    3 rem
    4 rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
    5 rem or more contributor license agreements. Licensed under the Elastic License;
    6 rem you may not use this file except in compliance with the Elastic License.
    7 rem
    9 setlocal enabledelayedexpansion
   10 setlocal enableextensions
   12 set SCRIPT=%0
   13 for %%I in (%SCRIPT%) do set DEPRECATED_DIRECTORY=%%~dpI
   14 set DEPRECATED_PATH=%DEPRECATED_DIRECTORY%setup-passwords.bat
   15 for %%I in ("%DEPRECATED_DIRECTORY%..") do set ELASTICSEARCH_PATH=%%~dpfI\elasticsearch-setup-passwords.bat
   16 echo %DEPRECATED_PATH% is deprecated, use %ELASTICSEARCH_PATH%
   18 call "%ELASTICSEARCH_PATH%" || exit /b 1
   20 endlocal
   21 endlocal